]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxAutoNSAutoreleasePool in Create() method
authorDavid Elliott <dfe@tgwbd.org>
Tue, 15 Jul 2003 15:15:52 +0000 (15:15 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Tue, 15 Jul 2003 15:15:52 +0000 (15:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/radiobut.mm

index c746b29502228a1e49c47120c93b4b52c0d331b5..d486f62aded0866133275e489cbe0c125fbbe01d 100644 (file)
@@ -15,6 +15,7 @@
 
 #import <AppKit/NSButton.h>
 #include "wx/cocoa/string.h"
 
 #import <AppKit/NSButton.h>
 #include "wx/cocoa/string.h"
+#include "wx/cocoa/autorelease.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
 // wxRadioButtonBase == wxControl
 
 IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
 // wxRadioButtonBase == wxControl
@@ -30,6 +31,7 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID winid,
            const wxValidator& validator,
            const wxString& name)
 {
            const wxValidator& validator,
            const wxString& name)
 {
+    wxAutoNSAutoreleasePool pool;
     if(!CreateControl(parent,winid,pos,size,style,validator,name))
         return false;
     m_cocoaNSView = NULL;
     if(!CreateControl(parent,winid,pos,size,style,validator,name))
         return false;
     m_cocoaNSView = NULL;