Added wxAutoNSAutoreleasePool to Create method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e51c36de5a
commit
c36a70f13c
@ -16,6 +16,8 @@
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/cocoa/autorelease.h"
|
||||
|
||||
#import <AppKit/NSButton.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
@ -29,6 +31,7 @@ bool wxBitmapButton::Create(wxWindow *parent, wxWindowID winid,
|
||||
const wxSize& size, long style,
|
||||
const wxValidator& validator, const wxString& name)
|
||||
{
|
||||
wxAutoNSAutoreleasePool pool;
|
||||
wxLogDebug("Creating control with id=%d",winid);
|
||||
if(!CreateControl(parent,winid,pos,size,style,validator,name))
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user