From dd7fa38258d50348f21106169d5d803b5356176b Mon Sep 17 00:00:00 2001 From: "av%netscape.com" Date: Thu, 21 Jun 2001 00:15:29 +0000 Subject: [PATCH] Fix for 80105 -- adding a null-check before release, r=peterl, sr=attinasi, a=chofmann --- modules/plugin/base/src/nsPluginViewer.cpp | 2 +- modules/plugin/nglsrc/nsPluginViewer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/plugin/base/src/nsPluginViewer.cpp b/modules/plugin/base/src/nsPluginViewer.cpp index fafcdbd6777..15c71a66af7 100644 --- a/modules/plugin/base/src/nsPluginViewer.cpp +++ b/modules/plugin/base/src/nsPluginViewer.cpp @@ -951,7 +951,7 @@ pluginInstanceOwner :: ~pluginInstanceOwner() if(host) host->StopPluginInstance(mInstance); } - NS_RELEASE(mInstance); + NS_IF_RELEASE(mInstance); } mWindow = nsnull; diff --git a/modules/plugin/nglsrc/nsPluginViewer.cpp b/modules/plugin/nglsrc/nsPluginViewer.cpp index fafcdbd6777..15c71a66af7 100644 --- a/modules/plugin/nglsrc/nsPluginViewer.cpp +++ b/modules/plugin/nglsrc/nsPluginViewer.cpp @@ -951,7 +951,7 @@ pluginInstanceOwner :: ~pluginInstanceOwner() if(host) host->StopPluginInstance(mInstance); } - NS_RELEASE(mInstance); + NS_IF_RELEASE(mInstance); } mWindow = nsnull;