From 284ee6c3da83d29d6c260e1f548702e610f34e90 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 8 Apr 2006 21:49:20 +0000 Subject: [PATCH] Give wx.GridTableBase a destructor, and clear the ownership when it is passed to SetTable. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/grid.i | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wxPython/src/grid.i b/wxPython/src/grid.i index ec563fc7f2..a6d83e33e7 100644 --- a/wxPython/src/grid.i +++ b/wxPython/src/grid.i @@ -1127,7 +1127,7 @@ class wxGridTableBase : public wxObject { public: // wxGridTableBase(); This is an ABC - //~wxGridTableBase(); + ~wxGridTableBase(); %extend { void _setOORInfo(PyObject* _self) { @@ -1659,9 +1659,12 @@ public: wxGridTableBase * GetTable() const; + + %disownarg(wxGridTableBase *); bool SetTable( wxGridTableBase *table, bool takeOwnership=false, WXGRIDSELECTIONMODES selmode = wxGrid::wxGridSelectCells ); + %cleardisown(wxGridTableBase *); void ClearGrid(); bool InsertRows( int pos = 0, int numRows = 1, bool updateLabels=true ); -- 2.45.2