Fixing dereferencing null-pointer. Caused crash, #14496
git-svn-id: svn://10.0.0.236/trunk@49588 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
055feb1f4f
commit
f6b2303084
@ -620,14 +620,17 @@ PluginListener::OnStartRequest(nsIURI* aURL, const char *contentType)
|
||||
return rv;
|
||||
}
|
||||
rv = mViewer->StartLoad(channel, mNextStream);
|
||||
NS_RELEASE(channel);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
if (NS_FAILED(rv))
|
||||
{
|
||||
NS_RELEASE(channel);
|
||||
return rv;
|
||||
}
|
||||
#else
|
||||
mViewer->StartLoad(aURL, contentType, mNextStream);
|
||||
#endif
|
||||
if (nsnull == mNextStream) {
|
||||
if (nsnull == mNextStream)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
#ifdef NECKO
|
||||
return mNextStream->OnStartRequest(channel, ctxt);
|
||||
#else
|
||||
|
||||
@ -620,14 +620,17 @@ PluginListener::OnStartRequest(nsIURI* aURL, const char *contentType)
|
||||
return rv;
|
||||
}
|
||||
rv = mViewer->StartLoad(channel, mNextStream);
|
||||
NS_RELEASE(channel);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
if (NS_FAILED(rv))
|
||||
{
|
||||
NS_RELEASE(channel);
|
||||
return rv;
|
||||
}
|
||||
#else
|
||||
mViewer->StartLoad(aURL, contentType, mNextStream);
|
||||
#endif
|
||||
if (nsnull == mNextStream) {
|
||||
if (nsnull == mNextStream)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
#ifdef NECKO
|
||||
return mNextStream->OnStartRequest(channel, ctxt);
|
||||
#else
|
||||
|
||||
@ -620,14 +620,17 @@ PluginListener::OnStartRequest(nsIURI* aURL, const char *contentType)
|
||||
return rv;
|
||||
}
|
||||
rv = mViewer->StartLoad(channel, mNextStream);
|
||||
NS_RELEASE(channel);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
if (NS_FAILED(rv))
|
||||
{
|
||||
NS_RELEASE(channel);
|
||||
return rv;
|
||||
}
|
||||
#else
|
||||
mViewer->StartLoad(aURL, contentType, mNextStream);
|
||||
#endif
|
||||
if (nsnull == mNextStream) {
|
||||
if (nsnull == mNextStream)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
#ifdef NECKO
|
||||
return mNextStream->OnStartRequest(channel, ctxt);
|
||||
#else
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user