mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1155823 - Properly shutdown the CompositorVsyncDispatcher. r=kats
This commit is contained in:
parent
68b7476b2e
commit
012ade9811
@ -223,6 +223,12 @@ void nsBaseWidget::DestroyCompositor()
|
||||
nsRefPtr<CompositorParent> compositorParent = mCompositorParent;
|
||||
mCompositorChild->Destroy();
|
||||
}
|
||||
|
||||
// Can have base widgets that are things like tooltips
|
||||
// which don't have CompositorVsyncDispatchers
|
||||
if (mCompositorVsyncDispatcher) {
|
||||
mCompositorVsyncDispatcher->Shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
void nsBaseWidget::DestroyLayerManager()
|
||||
@ -264,11 +270,6 @@ nsBaseWidget::~nsBaseWidget()
|
||||
#endif
|
||||
|
||||
delete mOriginalBounds;
|
||||
|
||||
// Can have base widgets that are things like tooltips which don't have CompositorVsyncDispatchers
|
||||
if (mCompositorVsyncDispatcher) {
|
||||
mCompositorVsyncDispatcher->Shutdown();
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user