diff --git a/wxPython/src/_xmlhandler.i b/wxPython/src/_xmlhandler.i index cdf52dae8b..5269a40d45 100644 --- a/wxPython/src/_xmlhandler.i +++ b/wxPython/src/_xmlhandler.i @@ -142,7 +142,7 @@ class wxPyXmlResourceHandler : public wxObject { public: %pythonAppend wxPyXmlResourceHandler "self._setCallbackInfo(self, XmlResourceHandler)" wxPyXmlResourceHandler() : wxXmlResourceHandler() {} - //~wxPyXmlResourceHandler(); + ~wxPyXmlResourceHandler(); void _setCallbackInfo(PyObject* self, PyObject* _class); diff --git a/wxPython/src/_xmlres.i b/wxPython/src/_xmlres.i index 87310ca821..63090843c5 100644 --- a/wxPython/src/_xmlres.i +++ b/wxPython/src/_xmlres.i @@ -102,6 +102,9 @@ public: // Initialize handlers for all supported controls/windows. void InitAllHandlers(); + + %disownarg( wxPyXmlResourceHandler *handler ); + // Initialize only specific handler (or custom handler). Convention says // that handler name is equal to control's name plus 'XmlHandler', e.g. // wxTextCtrlXmlHandler, wxHtmlWindowXmlHandler. XML resource compiler @@ -112,6 +115,9 @@ public: // Add a new handler at the begining of the handler list void InsertHandler(wxPyXmlResourceHandler *handler); + %cleardisown( wxPyXmlResourceHandler *handler ); + + // Removes all handlers void ClearHandlers();