From: David Elliott Date: Tue, 16 Dec 2003 19:30:41 +0000 (+0000) Subject: Added wxAutoNSAutoreleasePool to Create(Tool|Status)Bar X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e1f4ff6ddc69a37e8922b8617e1edec3fd71d670 Added wxAutoNSAutoreleasePool to Create(Tool|Status)Bar git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/frame.mm b/src/cocoa/frame.mm index 60069bd8ee..a172504c57 100644 --- a/src/cocoa/frame.mm +++ b/src/cocoa/frame.mm @@ -200,6 +200,7 @@ wxStatusBar* wxFrame::CreateStatusBar(int number, wxWindowID winid, const wxString& name) { + wxAutoNSAutoreleasePool pool; wxFrameBase::CreateStatusBar(number,style,winid,name); if(m_frameStatusBar) { @@ -233,6 +234,7 @@ wxToolBar* wxFrame::CreateToolBar(long style, wxWindowID winid, const wxString& name) { + wxAutoNSAutoreleasePool pool; wxFrameBase::CreateToolBar(style,winid,name); if(m_frameToolBar) {