stop leaking spec in cookie_ProfileDirectory -- bug 12604
git-svn-id: svn://10.0.0.236/trunk@44999 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -302,7 +302,9 @@ PRIVATE nsresult cookie_ProfileDirectory(nsFileSpec& dirSpec) {
|
||||
if (!spec) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
return spec->GetFileSpec(&dirSpec);
|
||||
nsresult res = spec->GetFileSpec(&dirSpec);
|
||||
delete spec;
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user