[Commits] (john) - Decrement reference count for table attribute

commits at osafoundation.org commits at osafoundation.org
Tue Aug 24 10:00:38 PDT 2004


Commit by: john
Modified files:
chandler/parcels/osaf/framework/blocks/ControlBlocks.py 1.105 1.106

Log message:
- Decrement reference count for table attribute

ViewCVS links:
http://cvs.osafoundation.org/index.cgi/chandler/parcels/osaf/framework/blocks/ControlBlocks.py.diff?r1=text&tr1=1.105&r2=text&tr2=1.106

Index: chandler/parcels/osaf/framework/blocks/ControlBlocks.py
diff -u chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.105 chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.106
--- chandler/parcels/osaf/framework/blocks/ControlBlocks.py:1.105	Tue Aug 24 08:06:38 2004
+++ chandler/parcels/osaf/framework/blocks/ControlBlocks.py	Tue Aug 24 10:00:37 2004
@@ -1,5 +1,5 @@
-__version__ = "$Revision: 1.105 $"
-__date__ = "$Date: 2004/08/24 15:06:38 $"
+__version__ = "$Revision: 1.106 $"
+__date__ = "$Date: 2004/08/24 17:00:37 $"
 __copyright__ = "Copyright (c) 2003-2004 Open Source Applications Foundation"
 __license__ = "http://osafoundation.org/Chandler_0.1_license_terms.htm"
 
@@ -334,6 +334,9 @@
         self.defaultAttribute = wx.grid.GridCellAttr()
         self.defaultAttribute.SetReadOnly (True)
 
+    def __del__ (self):
+        self.defaultAttribute.DecRef()
+        
     def GetNumberRows (self):
         """
           We've got the usual chicken & egg problems: wxWidgets calls GetNumberRows &



More information about the Commits mailing list