37071 Crash while downloading anything

37353    browser segfaults on page loading


git-svn-id: svn://10.0.0.236/trunk@68569 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
davidm%netscape.com
2000-05-07 05:38:02 +00:00
parent 89eff2adf7
commit bd38c5e43e
2 changed files with 6 additions and 14 deletions

View File

@@ -1029,8 +1029,9 @@ nsresult
nsCachedNetData::Evict(PRUint32 aTruncatedContentLength)
{
nsCOMPtr<nsINetDataCacheRecord> record;
GetRecord(getter_AddRefs(record));
nsresult rv = GetRecord(getter_AddRefs(record));
if ( NS_FAILED( rv ) ) return rv;
if ( record.get() == NULL ) return NS_ERROR_FAILURE;
// Tell observers about the eviction, so that they can release their
// references to this cache object.
Notify(nsIStreamAsFileObserver::REQUEST_DELETION, NS_OK);