Bug 473933 Really fix crash caused by bug 441359 r+sr=bz a=beltzner

This commit is contained in:
Neil Rashbrook 2009-01-28 11:22:08 +00:00
parent 558996f20c
commit 1a853c6cd6

View File

@ -1470,7 +1470,9 @@ CSSLoaderImpl::LoadSheet(SheetLoadData* aLoadData, StyleSheetState aSheetState)
rv = classifier->Start(channel, PR_TRUE);
if (NS_FAILED(rv)) {
LOG_ERROR((" Failed to classify URI"));
aLoadData->mIsCancelled = PR_TRUE;
channel->Cancel(rv);
SheetComplete(aLoadData, rv);
return rv;
}
}
@ -1479,6 +1481,7 @@ CSSLoaderImpl::LoadSheet(SheetLoadData* aLoadData, StyleSheetState aSheetState)
LOG_ERROR((" Failed to put data in loading table"));
aLoadData->mIsCancelled = PR_TRUE;
channel->Cancel(NS_ERROR_OUT_OF_MEMORY);
SheetComplete(aLoadData, NS_ERROR_OUT_OF_MEMORY);
return NS_ERROR_OUT_OF_MEMORY;
}