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

git-svn-id: svn://10.0.0.236/trunk@239103 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jruderman%hmc.edu 2007-11-09 22:26:04 +00:00
parent 82950a2cd2
commit c4c1ec8d55

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.