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:
David Elliott 2003-07-15 15:25:20 +00:00
parent e51c36de5a
commit c36a70f13c

View File

@ -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;