From 3ad6684b63f3f4be7e6d2c71d39ca1745c66f390 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 24 Jan 2014 19:55:42 +0000 Subject: [PATCH] fixing memory leak git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/core/stdpaths_cf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/core/stdpaths_cf.cpp b/src/osx/core/stdpaths_cf.cpp index 86b34e646c..c5b4571bf0 100644 --- a/src/osx/core/stdpaths_cf.cpp +++ b/src/osx/core/stdpaths_cf.cpp @@ -80,7 +80,7 @@ static wxString BundleRelativeURLToPath(CFURLRef relativeURL) { CFURLRef absoluteURL = CFURLCopyAbsoluteURL(relativeURL); wxCHECK_MSG(absoluteURL, wxEmptyString, wxT("Failed to resolve relative URL to absolute URL")); - CFStringRef cfStrPath = CFURLCopyFileSystemPath(absoluteURL,kDefaultPathStyle); + wxCFStringRef cfStrPath( CFURLCopyFileSystemPath(absoluteURL,kDefaultPathStyle) ); CFRelease(absoluteURL); return wxCFStringRef::AsStringWithNormalizationFormC(cfStrPath); }