Bug 719117 - Backout bug 724781. part 1/2, r=bsmedberg

This commit is contained in:
Mats Palmgren 2012-05-26 00:34:11 +02:00
parent 0faa1d9ef7
commit bc07b0a366

View File

@ -2206,13 +2206,10 @@ nsObjectLoadingContent::StopPluginInstance()
}
#endif
// DoStopPlugin can process events and there may be pending InDocCheckEvent
// events which can drop in underneath us and destroy the instance we are
// about to destroy. Make sure this doesn't happen via this temp ref ptr and
// the !mInstanceOwner check above.
nsRefPtr<nsPluginInstanceOwner> instOwner = mInstanceOwner;
DoStopPlugin(mInstanceOwner, delayedStop);
mInstanceOwner = nsnull;
DoStopPlugin(instOwner, delayedStop);
return NS_OK;
}