X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ca6987db2b4ece46da16f1a322c0e75081e3d4b..de5dd006449a97887afb2aad39c8f20549818d98:/src/cocoa/statbmp.mm diff --git a/src/cocoa/statbmp.mm b/src/cocoa/statbmp.mm index 050ab2e041..10c5ec1ebe 100644 --- a/src/cocoa/statbmp.mm +++ b/src/cocoa/statbmp.mm @@ -6,7 +6,7 @@ // Created: 2003/02/15 // RCS-ID: $Id: // Copyright: (c) 2003 David Elliott -// Licence: wxWindows license +// Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// #include "wx/wxprec.h" @@ -14,6 +14,7 @@ #include "wx/app.h" #include "wx/statbmp.h" #endif //WX_PRECOMP +#include "wx/cocoa/autorelease.h" #import @@ -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;