fixing memory leak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -80,7 +80,7 @@ static wxString BundleRelativeURLToPath(CFURLRef relativeURL)
|
|||||||
{
|
{
|
||||||
CFURLRef absoluteURL = CFURLCopyAbsoluteURL(relativeURL);
|
CFURLRef absoluteURL = CFURLCopyAbsoluteURL(relativeURL);
|
||||||
wxCHECK_MSG(absoluteURL, wxEmptyString, wxT("Failed to resolve relative URL to absolute URL"));
|
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);
|
CFRelease(absoluteURL);
|
||||||
return wxCFStringRef::AsStringWithNormalizationFormC(cfStrPath);
|
return wxCFStringRef::AsStringWithNormalizationFormC(cfStrPath);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user