mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 587861: Clear D2D surfaces on window destruction. r=roc
This commit is contained in:
parent
a5fb731221
commit
a565e32911
@ -679,6 +679,10 @@ NS_METHOD nsWindow::Destroy()
|
||||
}
|
||||
mLayerManager = nsnull;
|
||||
|
||||
/* We should clear our D2D window surface now and not wait for the GC to
|
||||
* delete the nsWindow. */
|
||||
mD2DWindowSurface = nsnull;
|
||||
|
||||
// The DestroyWindow function destroys the specified window. The function sends WM_DESTROY
|
||||
// and WM_NCDESTROY messages to the window to deactivate it and remove the keyboard focus
|
||||
// from it. The function also destroys the window's menu, flushes the thread message queue,
|
||||
|
Loading…
Reference in New Issue
Block a user