зеркало из https://github.com/mozilla/pjs.git
Fixing dereferencing null-pointer. Caused crash, #14496
This commit is contained in:
Родитель
6c6f732e6b
Коммит
435d460fb3
|
@ -620,14 +620,17 @@ PluginListener::OnStartRequest(nsIURI* aURL, const char *contentType)
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
rv = mViewer->StartLoad(channel, mNextStream);
|
rv = mViewer->StartLoad(channel, mNextStream);
|
||||||
NS_RELEASE(channel);
|
|
||||||
if (NS_FAILED(rv)) return rv;
|
if (NS_FAILED(rv))
|
||||||
|
{
|
||||||
|
NS_RELEASE(channel);
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
mViewer->StartLoad(aURL, contentType, mNextStream);
|
mViewer->StartLoad(aURL, contentType, mNextStream);
|
||||||
#endif
|
#endif
|
||||||
if (nsnull == mNextStream) {
|
if (nsnull == mNextStream)
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
|
||||||
#ifdef NECKO
|
#ifdef NECKO
|
||||||
return mNextStream->OnStartRequest(channel, ctxt);
|
return mNextStream->OnStartRequest(channel, ctxt);
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -620,14 +620,17 @@ PluginListener::OnStartRequest(nsIURI* aURL, const char *contentType)
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
rv = mViewer->StartLoad(channel, mNextStream);
|
rv = mViewer->StartLoad(channel, mNextStream);
|
||||||
NS_RELEASE(channel);
|
|
||||||
if (NS_FAILED(rv)) return rv;
|
if (NS_FAILED(rv))
|
||||||
|
{
|
||||||
|
NS_RELEASE(channel);
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
mViewer->StartLoad(aURL, contentType, mNextStream);
|
mViewer->StartLoad(aURL, contentType, mNextStream);
|
||||||
#endif
|
#endif
|
||||||
if (nsnull == mNextStream) {
|
if (nsnull == mNextStream)
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
|
||||||
#ifdef NECKO
|
#ifdef NECKO
|
||||||
return mNextStream->OnStartRequest(channel, ctxt);
|
return mNextStream->OnStartRequest(channel, ctxt);
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -620,14 +620,17 @@ PluginListener::OnStartRequest(nsIURI* aURL, const char *contentType)
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
rv = mViewer->StartLoad(channel, mNextStream);
|
rv = mViewer->StartLoad(channel, mNextStream);
|
||||||
NS_RELEASE(channel);
|
|
||||||
if (NS_FAILED(rv)) return rv;
|
if (NS_FAILED(rv))
|
||||||
|
{
|
||||||
|
NS_RELEASE(channel);
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
mViewer->StartLoad(aURL, contentType, mNextStream);
|
mViewer->StartLoad(aURL, contentType, mNextStream);
|
||||||
#endif
|
#endif
|
||||||
if (nsnull == mNextStream) {
|
if (nsnull == mNextStream)
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
|
||||||
#ifdef NECKO
|
#ifdef NECKO
|
||||||
return mNextStream->OnStartRequest(channel, ctxt);
|
return mNextStream->OnStartRequest(channel, ctxt);
|
||||||
#else
|
#else
|
||||||
|
|
Загрузка…
Ссылка в новой задаче