From: Stefan Csomor Date: Wed, 13 Jun 2012 16:43:07 +0000 (+0000) Subject: fixing mem leak X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8cc897966965e018c5205be32273bda68cbeb2a7 fixing mem leak git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/utils_osx.cpp b/src/osx/utils_osx.cpp index 1f09af498f..0cd8cda713 100644 --- a/src/osx/utils_osx.cpp +++ b/src/osx/utils_osx.cpp @@ -90,6 +90,7 @@ int wxDisplayDepth() theDepth = 32; // some reasonable default CFRelease(encoding); + CGDisplayModeRelease(currentMode); } else #endif