зеркало из https://github.com/mozilla/pjs.git
fix for crasher nsbeta3++ bug 52818, r=dp, r/a=rpotts
This commit is contained in:
Родитель
13b54dd090
Коммит
852cabe4f0
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче