From 123dc137d396f8dca26f86d6de77518e02bd70b7 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 4 May 2005 21:47:41 +0000 Subject: [PATCH] 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 --- wxPython/src/_config.i | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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), -- 2.50.0