wxWindowCocoaScroller: use wxAutoNSAutoreleasePool in constructor
authorDavid Elliott <dfe@tgwbd.org>
Sun, 11 Apr 2004 04:03:01 +0000 (04:03 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sun, 11 Apr 2004 04:03:01 +0000 (04:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/window.mm

index 0259aa8de3dd83a7b98dfd162518b80df17798f2..b74cc3ca5ebde200a9d99ad2363a824329a4f91a 100644 (file)
@@ -147,6 +147,7 @@ bool wxWindowCocoaHider::Cocoa_drawRect(const NSRect& rect)
 wxWindowCocoaScroller::wxWindowCocoaScroller(wxWindow *owner)
 :   m_owner(owner)
 {
+    wxAutoNSAutoreleasePool pool;
     wxASSERT(owner);
     wxASSERT(owner->GetNSView());
     m_cocoaNSScrollView = [[NSScrollView alloc]