mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Followup fix for bug 393845, fixing minor issue found by jag, no functional change.
This commit is contained in:
parent
962dee4160
commit
69dc88b93a
@ -1743,10 +1743,6 @@ nsObjectFrame::StopPluginInternal(PRBool aDelayedStop)
|
||||
// get reinstantiated we'll send the right messages to the plug-in.
|
||||
mWindowlessRect.Empty();
|
||||
|
||||
// Grab the view while we still know it's safe to do so.
|
||||
|
||||
nsIView *view = GetView();
|
||||
|
||||
#ifdef XP_WIN
|
||||
if (aDelayedStop) {
|
||||
// If we're asked to do a delayed stop it means we're stopping the
|
||||
@ -1754,6 +1750,7 @@ nsObjectFrame::StopPluginInternal(PRBool aDelayedStop)
|
||||
// the view to disown the widget (i.e. leave it up to us to
|
||||
// destroy it).
|
||||
|
||||
// Disown the view while we still know it's safe to do so.
|
||||
nsIView *view = GetView();
|
||||
if (view) {
|
||||
view->DisownWidget();
|
||||
|
Loading…
Reference in New Issue
Block a user