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;