Use wxAutoNSAutoreleasePool in Create() method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e92ea62916
commit
e51c36de5a
@ -15,6 +15,7 @@
|
||||
|
||||
#import <AppKit/NSButton.h>
|
||||
#include "wx/cocoa/string.h"
|
||||
#include "wx/cocoa/autorelease.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
|
||||
// wxRadioButtonBase == wxControl
|
||||
@ -30,6 +31,7 @@ bool wxRadioButton::Create(wxWindow *parent, wxWindowID winid,
|
||||
const wxValidator& validator,
|
||||
const wxString& name)
|
||||
{
|
||||
wxAutoNSAutoreleasePool pool;
|
||||
if(!CreateControl(parent,winid,pos,size,style,validator,name))
|
||||
return false;
|
||||
m_cocoaNSView = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user