cleanup image after application
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -165,6 +165,9 @@ bool wxTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip)
|
|||||||
err = SetApplicationDockTileImage(pImage);
|
err = SetApplicationDockTileImage(pImage);
|
||||||
|
|
||||||
wxASSERT(err == 0);
|
wxASSERT(err == 0);
|
||||||
|
|
||||||
|
if (pImage != NULL)
|
||||||
|
CGImageRelease(pImage);
|
||||||
|
|
||||||
m_iconAdded = true;
|
m_iconAdded = true;
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user