]> git.saurik.com Git - wxWidgets.git/commitdiff
cleanup image after application
authorRyan Norton <wxprojects@comcast.net>
Sun, 26 Sep 2004 01:27:25 +0000 (01:27 +0000)
committerRyan Norton <wxprojects@comcast.net>
Sun, 26 Sep 2004 01:27:25 +0000 (01:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/taskbar.cpp

index 494e0aa48d246cbf56419fe7fa9e707112b5f35b..b122b034a2e9af0b2efbd656e2213c00c1ab047f 100644 (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;