mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 410804 - nsWebBrowserPersist::MakeOutputStreamFromFile doesn't follow XPCOM rules. r=biesi, sr=biesi, a=schrep
This commit is contained in:
parent
96aba0b23f
commit
8e7fe59222
@ -2290,7 +2290,10 @@ nsWebBrowserPersist::MakeOutputStreamFromFile(
|
||||
{
|
||||
// Add to cleanup list in event of failure
|
||||
CleanupData *cleanupData = new CleanupData;
|
||||
NS_ENSURE_TRUE(cleanupData, NS_ERROR_OUT_OF_MEMORY);
|
||||
if (!cleanupData) {
|
||||
NS_RELEASE(*aOutputStream);
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
cleanupData->mFile = aFile;
|
||||
cleanupData->mIsDirectory = PR_FALSE;
|
||||
mCleanupList.AppendElement(cleanupData);
|
||||
|
Loading…
Reference in New Issue
Block a user