fix memory leak in Cocoa icon decoder. b=342066 r=mento sr=pav
git-svn-id: svn://10.0.0.236/trunk@200434 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
14959661fd
commit
4e710ffb99
@ -259,8 +259,10 @@ nsresult nsIconChannel::MakeInputStream(nsIInputStream** _retval, PRBool nonBloc
|
|||||||
NS_ENSURE_SUCCESS(rv, rv);
|
NS_ENSURE_SUCCESS(rv, rv);
|
||||||
|
|
||||||
CFURLRef macURL;
|
CFURLRef macURL;
|
||||||
if (NS_SUCCEEDED(localFileMac->GetCFURL(&macURL)))
|
if (NS_SUCCEEDED(localFileMac->GetCFURL(&macURL))) {
|
||||||
iconImage = [[NSWorkspace sharedWorkspace] iconForFile:[(NSURL*)macURL path]];
|
iconImage = [[NSWorkspace sharedWorkspace] iconForFile:[(NSURL*)macURL path]];
|
||||||
|
::CFRelease(macURL);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// try by HFS type if we don't have an icon yet
|
// try by HFS type if we don't have an icon yet
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user