From: David Elliott Date: Sun, 11 Apr 2004 17:59:43 +0000 (+0000) Subject: Use wxAutoNSAutoreleasePool when destroying wxIconRefData X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/894d6c9abdac7b7b9ec02caa881db53607ccb99f Use wxAutoNSAutoreleasePool when destroying wxIconRefData git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/cocoa/icon.mm b/src/cocoa/icon.mm index f3cb56d6d7..d8c612aab1 100644 --- a/src/cocoa/icon.mm +++ b/src/cocoa/icon.mm @@ -66,6 +66,7 @@ wxIconRefData::wxIconRefData( const wxIconRefData& data) wxIconRefData::~wxIconRefData() { + wxAutoNSAutoreleasePool pool; [m_cocoaNSImage release]; m_cocoaNSImage = NULL; }