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:
parent
ae8162c88f
commit
739e35e4fb
@ -165,6 +165,9 @@ bool wxTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip)
|
||||
err = SetApplicationDockTileImage(pImage);
|
||||
|
||||
wxASSERT(err == 0);
|
||||
|
||||
if (pImage != NULL)
|
||||
CGImageRelease(pImage);
|
||||
|
||||
m_iconAdded = true;
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user