Removed 2 *extra* calls to NS_RELEASE in failure cases...

This commit is contained in:
rpotts@netscape.com
1999-10-10 06:58:42 +00:00
parent 08e981237f
commit 99310e1cea
3 changed files with 3 additions and 12 deletions

View File

@@ -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