Put wxAutoNSAutoreleasePool in methods that may be used outside the run loop.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2003-07-14 13:10:32 +00:00
parent 493902ac5b
commit 7fc77f30f4
14 changed files with 51 additions and 0 deletions

View File

@@ -12,6 +12,8 @@
#include "wx/app.h"
#include "wx/statbox.h"
#include "wx/cocoa/autorelease.h"
#import <AppKit/NSBox.h>
#import <Foundation/NSString.h>
@@ -27,6 +29,7 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID winid,
long style, const wxValidator& validator,
const wxString& name)
{
wxAutoNSAutoreleasePool pool;
if(!CreateControl(parent,winid,pos,size,style,validator,name))
return false;
m_cocoaNSView = NULL;