Make sure to use NS_RELEASE for XPCOM objects. This fixes some leaks of nsFileSpecImpl. r=morse.

This commit is contained in:
bryner%uiuc.edu 1999-12-03 06:46:07 +00:00
Родитель 33ac52e69e
Коммит 7b12131f67
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
}