From: Robin Dunn Date: Fri, 24 Mar 2006 00:12:12 +0000 (+0000) Subject: wxFileSystemHandler needs a destructor and to give ownership to wxFileSystem X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cdd7b180fed8f275d8daeb256af5cfdf0cf5b1db wxFileSystemHandler needs a destructor and to give ownership to wxFileSystem git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_filesys.i b/wxPython/src/_filesys.i index d02c4d8748..aaaea5c8be 100644 --- a/wxPython/src/_filesys.i +++ b/wxPython/src/_filesys.i @@ -93,6 +93,7 @@ class wxFileSystemHandler //: public wxObject { public: //wxFileSystemHandler(); + ~wxFileSystemHandler(); }; @@ -138,7 +139,10 @@ public: wxString FindFirst(const wxString& spec, int flags = 0); wxString FindNext(); + %disownarg(wxFileSystemHandler *handler); static void AddHandler(wxFileSystemHandler *handler); + %cleardisown(wxFileSystemHandler *handler); + static void CleanUpHandlers(); // Returns the file URL for a native path