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]