зеркало из https://github.com/mozilla/pjs.git
Make sure to use NS_RELEASE for XPCOM objects. This fixes some leaks of nsFileSpecImpl. r=morse.
This commit is contained in:
Родитель
33ac52e69e
Коммит
7b12131f67
|
@ -312,7 +312,7 @@ PRIVATE nsresult cookie_ProfileDirectory(nsFileSpec& dirSpec) {
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
nsresult res = spec->GetFileSpec(&dirSpec);
|
||||
delete spec;
|
||||
NS_RELEASE(spec);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче