From 28f6d22231fc188bd6f75ac28067964fe53a6397 Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Fri, 28 Apr 2006 17:25:48 +0000 Subject: [PATCH] Bug 334687: Possible null pointer dereference in nsPluginHostImpl.cpp, patch by Ryan Flint , r+sr=jst --- modules/plugin/base/src/nsPluginHostImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/plugin/base/src/nsPluginHostImpl.cpp b/modules/plugin/base/src/nsPluginHostImpl.cpp index f7c32ec50bb8..1ab9d85c5636 100644 --- a/modules/plugin/base/src/nsPluginHostImpl.cpp +++ b/modules/plugin/base/src/nsPluginHostImpl.cpp @@ -415,7 +415,7 @@ nsActivePlugin::~nsActivePlugin() mInstance->Destroy(); NS_RELEASE(mInstance); - NS_RELEASE(mPeer); + NS_IF_RELEASE(mPeer); } PL_strfree(mURL); }