Fix bug 401393, leak and assertion with Flash if Greasemonkey is installed. r=sicking, sr=jst, a=blocking1.9.

This commit is contained in:
jruderman@hmc.edu 2007-11-09 14:26:04 -08:00
parent f46ce4ead5
commit 8cc395f83d

View File

@ -3527,12 +3527,8 @@ nsPluginInstanceOwner::Destroy()
void
nsPluginInstanceOwner::PrepareToStop(PRBool aDelayedStop)
{
if (!mWidget) {
return;
}
#ifdef XP_WIN
if (aDelayedStop) {
if (aDelayedStop && mWidget) {
// To delay stopping a plugin we need to reparent the plugin
// so that we can safely tear down the
// plugin after its frame (and view) is gone.