]> git.saurik.com Git - wxWidgets.git/commitdiff
Use wxAutoNSAutoreleasePool when destroying wxIconRefData
authorDavid Elliott <dfe@tgwbd.org>
Sun, 11 Apr 2004 17:59:43 +0000 (17:59 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Sun, 11 Apr 2004 17:59:43 +0000 (17:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/cocoa/icon.mm

index f3cb56d6d7d271fb57e2184d4b5056f426912eef..d8c612aab159f3b7d9be6fce9e20c14a7c6b38c2 100644 (file)
@@ -66,6 +66,7 @@ wxIconRefData::wxIconRefData( const wxIconRefData& data)
 
 wxIconRefData::~wxIconRefData()
 {
+    wxAutoNSAutoreleasePool pool;
     [m_cocoaNSImage release];
     m_cocoaNSImage = NULL;
 }