зеркало из https://github.com/mozilla/gecko-dev.git
fix for crasher nsbeta3++ bug 52818, r=dp, r/a=rpotts
This commit is contained in:
Родитель
79ef789489
Коммит
eb4a98084f
|
@ -431,6 +431,8 @@ nsNetDiskCache::GetCachedNetDataByID(PRInt32 RecordID, nsINetDataCacheRecord **_
|
|||
printf("CACHE: GetCachedNetDataByID(id=%d) created nsDiskCacheRecord %p\n", RecordID, *_retval);
|
||||
#endif /* DEBUG_dp */
|
||||
return rv;
|
||||
} else if(!info) {
|
||||
rv = NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
#ifdef DEBUG_dp
|
||||
|
|
|
@ -1044,7 +1044,7 @@ nsCachedNetData::Delete(void)
|
|||
nsCOMPtr<nsINetDataCacheRecord> record;
|
||||
|
||||
rv = GetRecord(getter_AddRefs(record));
|
||||
if (NS_SUCCEEDED(rv))
|
||||
if (NS_SUCCEEDED(rv) && record)
|
||||
{
|
||||
// Delete the record if we can get a record.
|
||||
record->Delete();
|
||||
|
|
Загрузка…
Ссылка в новой задаче