]> git.saurik.com Git - wxWidgets.git/commitdiff
missing release
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 19 Jan 2011 18:36:38 +0000 (18:36 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 19 Jan 2011 18:36:38 +0000 (18:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/icon.cpp

index 50bd2b8c5a17e9b70eb769b055b31a7809c68b57..43cd52dce499a02aee92fec873cc4399357c30bf 100644 (file)
@@ -338,6 +338,7 @@ bool wxIcon::LoadIconFromBundleResource(const wxString& resourceName, int desire
             {
                 err = GetIconRefFromIconFamilyPtr( *iconFamily, GetHandleSize((Handle) iconFamily), &iconRef );
             }
+            ReleaseResource( (Handle) iconFamily );
         }
     }