Use wxAutoNSAutoreleasePool when destroying wxIconRefData
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -66,6 +66,7 @@ wxIconRefData::wxIconRefData( const wxIconRefData& data)
|
|||||||
|
|
||||||
wxIconRefData::~wxIconRefData()
|
wxIconRefData::~wxIconRefData()
|
||||||
{
|
{
|
||||||
|
wxAutoNSAutoreleasePool pool;
|
||||||
[m_cocoaNSImage release];
|
[m_cocoaNSImage release];
|
||||||
m_cocoaNSImage = NULL;
|
m_cocoaNSImage = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user