mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 724781 - Prevent repetitive nsObjectLoadingContent StopPluginInstance calls from entering DoStopPlugin. r=joshmoz
This commit is contained in:
parent
5d8985e2ba
commit
b1a104d755
@ -2133,10 +2133,13 @@ nsObjectLoadingContent::StopPluginInstance()
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DoStopPlugin(mInstanceOwner, delayedStop);
|
// 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;
|
||||||
mInstanceOwner = nsnull;
|
mInstanceOwner = nsnull;
|
||||||
|
DoStopPlugin(instOwner, delayedStop);
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user