X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0ca6987db2b4ece46da16f1a322c0e75081e3d4b..cc402e6431b66a8eb7d567caa55a1bece42902b7:/src/cocoa/statbmp.mm diff --git a/src/cocoa/statbmp.mm b/src/cocoa/statbmp.mm index 050ab2e041..83cba15fd6 100644 --- a/src/cocoa/statbmp.mm +++ b/src/cocoa/statbmp.mm @@ -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;