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

git-svn-id: svn://10.0.0.236/trunk@50325 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rpotts%netscape.com 1999-10-10 06:58:42 +00:00
parent cb001a0982
commit 907eec02fc
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

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

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