From a9861c57ed7c1bd7c6dc0e64ff5e2e6a7c907d41 Mon Sep 17 00:00:00 2001 From: David Elliott Date: Sun, 11 Apr 2004 04:03:01 +0000 Subject: [PATCH] wxWindowCocoaScroller: use wxAutoNSAutoreleasePool in constructor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/window.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cocoa/window.mm b/src/cocoa/window.mm index 0259aa8de3..b74cc3ca5e 100644 --- a/src/cocoa/window.mm +++ b/src/cocoa/window.mm @@ -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]