]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxAutoNSAutoreleasePool to DoGetBestSize method
authorDavid Elliott <dfe@tgwbd.org>
Tue, 15 Jul 2003 15:27:59 +0000 (15:27 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Tue, 15 Jul 2003 15:27:59 +0000 (15:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/control.mm

index eac63d12e38e57b41cf743be37880077aad966c7..1f28f4532b8f4518096eb03b1c71061ef7a4ebb9 100644 (file)
@@ -16,6 +16,8 @@
     #include "wx/log.h"
 #endif
 
+#include "wx/cocoa/autorelease.h"
+
 #import <AppKit/NSControl.h>
 
 IMPLEMENT_ABSTRACT_CLASS(wxControl, wxWindow)
@@ -53,6 +55,7 @@ wxControl::~wxControl()
 
 wxSize wxControl::DoGetBestSize() const
 {
+    wxAutoNSAutoreleasePool pool;
     wxASSERT(m_cocoaNSView);
     NSRect storedRect = [m_cocoaNSView frame];
     [GetNSControl() sizeToFit];