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:
Ryan Norton 2004-09-26 01:27:25 +00:00
parent ae8162c88f
commit 739e35e4fb

View File

@ -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;