]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing mem leak
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 13 Jun 2012 16:43:07 +0000 (16:43 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 13 Jun 2012 16:43:07 +0000 (16:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/utils_osx.cpp

index 1f09af498f19f2b0527ce0028904a1ce2be5329f..0cd8cda71339cbad392d44fb57fa47c7b49bf37e 100644 (file)
@@ -90,6 +90,7 @@ int wxDisplayDepth()
             theDepth = 32; // some reasonable default
 
         CFRelease(encoding);
+        CGDisplayModeRelease(currentMode);
     }
     else
 #endif