From: Robin Dunn Date: Wed, 4 May 2005 21:47:41 +0000 (+0000) Subject: Disown the config object when calling wx.ConfigBase.Set X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/123dc137d396f8dca26f86d6de77518e02bd70b7 Disown the config object when calling wx.ConfigBase.Set git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_config.i b/wxPython/src/_config.i index 5935dae670..4ee0060a0f 100644 --- a/wxPython/src/_config.i +++ b/wxPython/src/_config.i @@ -85,11 +85,12 @@ public: }; + %apply SWIGTYPE *DISOWN { wxConfigBase *config }; DocDeclStr( static wxConfigBase *, Set(wxConfigBase *config), "Sets the global config object (the one returned by Get) and returns a reference to the previous global config object.", ""); - + %clear wxConfigBase *config; DocDeclStr( static wxConfigBase *, Get(bool createOnDemand = true),