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

This commit is contained in:
serge%netscape.com 2002-09-13 22:50:02 +00:00
parent b018a5c2d2
commit 6728a55e86

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()