зеркало из https://github.com/mozilla/pjs.git
166713, crash in [@ PluginViewerImpl::StartLoad] Trunk, r=av, sr=beard
This commit is contained in:
Родитель
71cd871649
Коммит
175011468f
|
@ -292,7 +292,8 @@ NS_IMETHODIMP
|
||||||
PluginViewerImpl::StartLoad(nsIRequest* request, nsIStreamListener*& aResult)
|
PluginViewerImpl::StartLoad(nsIRequest* request, nsIStreamListener*& aResult)
|
||||||
{
|
{
|
||||||
nsCOMPtr<nsIChannel> channel = do_QueryInterface(request);
|
nsCOMPtr<nsIChannel> channel = do_QueryInterface(request);
|
||||||
if (!channel) return NS_ERROR_FAILURE;
|
if (!channel || !mWindow)
|
||||||
|
return NS_ERROR_FAILURE;
|
||||||
|
|
||||||
NS_IF_RELEASE(mChannel);
|
NS_IF_RELEASE(mChannel);
|
||||||
mChannel = channel;
|
mChannel = channel;
|
||||||
|
@ -967,6 +968,7 @@ PluginListener::PluginListener(PluginViewerImpl* aViewer)
|
||||||
NS_INIT_ISUPPORTS();
|
NS_INIT_ISUPPORTS();
|
||||||
mViewer = aViewer;
|
mViewer = aViewer;
|
||||||
NS_ADDREF(aViewer);
|
NS_ADDREF(aViewer);
|
||||||
|
mNextStream = nsnull;
|
||||||
}
|
}
|
||||||
|
|
||||||
PluginListener::~PluginListener()
|
PluginListener::~PluginListener()
|
||||||
|
|
Загрузка…
Ссылка в новой задаче