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