зеркало из https://github.com/mozilla/gecko-dev.git
Removed 2 *extra* calls to NS_RELEASE in failure cases...
This commit is contained in:
Родитель
47ef8ef344
Коммит
9ced2151e2
|
@ -629,14 +629,11 @@ PluginListener::OnStartRequest(nsIURI* aURL, const char *contentType)
|
|||
|
||||
rv = channel->GetContentType(&contentType);
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_RELEASE(channel);
|
||||
return rv;
|
||||
}
|
||||
rv = mViewer->StartLoad(channel, mNextStream);
|
||||
|
||||
if (NS_FAILED(rv))
|
||||
{
|
||||
NS_RELEASE(channel);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
#else
|
||||
|
|
|
@ -629,14 +629,11 @@ PluginListener::OnStartRequest(nsIURI* aURL, const char *contentType)
|
|||
|
||||
rv = channel->GetContentType(&contentType);
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_RELEASE(channel);
|
||||
return rv;
|
||||
}
|
||||
rv = mViewer->StartLoad(channel, mNextStream);
|
||||
|
||||
if (NS_FAILED(rv))
|
||||
{
|
||||
NS_RELEASE(channel);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
#else
|
||||
|
|
|
@ -629,14 +629,11 @@ PluginListener::OnStartRequest(nsIURI* aURL, const char *contentType)
|
|||
|
||||
rv = channel->GetContentType(&contentType);
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_RELEASE(channel);
|
||||
return rv;
|
||||
}
|
||||
rv = mViewer->StartLoad(channel, mNextStream);
|
||||
|
||||
if (NS_FAILED(rv))
|
||||
{
|
||||
NS_RELEASE(channel);
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
#else
|
||||
|
|
Загрузка…
Ссылка в новой задаче