]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/grid.py
Removed richedit from index file
[wxWidgets.git] / wxPython / src / gtk / grid.py
index c64631e58295c70adf359cd7c86fc59d91f10459..31c0d4da8ed0e980e7d617a1f2fddcc6219b6479 100644 (file)
@@ -393,7 +393,9 @@ class GridCellEditor(object):
 
     def Destroy(*args, **kwargs):
         """Destroy(self)"""
-        return _grid.GridCellEditor_Destroy(*args, **kwargs)
+        val = _grid.GridCellEditor_Destroy(*args, **kwargs)
+        args[0].thisown = 0
+        return val
 
 
 class GridCellEditorPtr(GridCellEditor):
@@ -1056,7 +1058,9 @@ class PyGridTableBase(GridTableBase):
 
         Deletes the C++ object this Python object is a proxy for.
         """
-        return _grid.PyGridTableBase_Destroy(*args, **kwargs)
+        val = _grid.PyGridTableBase_Destroy(*args, **kwargs)
+        args[0].thisown = 0
+        return val
 
     def base_GetTypeName(*args, **kwargs):
         """base_GetTypeName(self, int row, int col) -> String"""