]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxAutoNSAutoreleasePool to Create(Tool|Status)Bar
authorDavid Elliott <dfe@tgwbd.org>
Tue, 16 Dec 2003 19:30:41 +0000 (19:30 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Tue, 16 Dec 2003 19:30:41 +0000 (19:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/frame.mm

index 60069bd8ee0537f53daa7cc6ed18a79ac0465312..a172504c57d700a8c0b6296c190ddcccfe4337c6 100644 (file)
@@ -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)
     {