[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7198 - trunk/gnue-common/src/datasources/drivers/Base
From: |
johannes |
Subject: |
[gnue] r7198 - trunk/gnue-common/src/datasources/drivers/Base |
Date: |
Mon, 14 Mar 2005 01:42:59 -0600 (CST) |
Author: johannes
Date: 2005-03-14 01:42:58 -0600 (Mon, 14 Mar 2005)
New Revision: 7198
Modified:
trunk/gnue-common/src/datasources/drivers/Base/DataObject.py
Log:
Avoid another memory leak when creating new records
Modified: trunk/gnue-common/src/datasources/drivers/Base/DataObject.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/DataObject.py
2005-03-13 13:37:53 UTC (rev 7197)
+++ trunk/gnue-common/src/datasources/drivers/Base/DataObject.py
2005-03-14 07:42:58 UTC (rev 7198)
@@ -108,8 +108,11 @@
ceq = GConditions.GCeq(cond)
GConditions.GCConst(ceq,1,"number")
GConditions.GCConst(ceq,0,"number")
- return self.createResultSet(conditions=cond, readOnly=readOnly,
- masterRecordSet=masterRecordSet)
+ try:
+ return self.createResultSet(conditions=cond, readOnly=readOnly,
+ masterRecordSet=masterRecordSet)
+ finally:
+ cond.breakReferences ()
# Add a detail data object. This dataobject will create a new resultset
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7198 - trunk/gnue-common/src/datasources/drivers/Base,
johannes <=