Create(): use wxAutoNSAutoreleasePool

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2004-03-26 03:15:27 +00:00
parent 96c0183f31
commit 9556c0f1b3

View File

@@ -14,6 +14,7 @@
#include "wx/app.h"
#include "wx/statbmp.h"
#endif //WX_PRECOMP
#include "wx/cocoa/autorelease.h"
#import <AppKit/NSImageView.h>
@@ -29,6 +30,7 @@ bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID winid,
long style,
const wxString& name)
{
wxAutoNSAutoreleasePool pool;
if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
return false;
m_cocoaNSView = NULL;