166713, crash in [@ PluginViewerImpl::StartLoad] Trunk, r=av, sr=beard

git-svn-id: svn://10.0.0.236/trunk@129580 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
serge%netscape.com
2002-09-13 22:50:02 +00:00
parent 588eacfc8c
commit 5349dde113

View File

@@ -292,7 +292,8 @@ NS_IMETHODIMP
PluginViewerImpl::StartLoad(nsIRequest* request, nsIStreamListener*& aResult)
{
nsCOMPtr<nsIChannel> channel = do_QueryInterface(request);
if (!channel) return NS_ERROR_FAILURE;
if (!channel || !mWindow)
return NS_ERROR_FAILURE;
NS_IF_RELEASE(mChannel);
mChannel = channel;
@@ -967,6 +968,7 @@ PluginListener::PluginListener(PluginViewerImpl* aViewer)
NS_INIT_ISUPPORTS();
mViewer = aViewer;
NS_ADDREF(aViewer);
mNextStream = nsnull;
}
PluginListener::~PluginListener()