DescriptionDon't destroy the window in PlatformWindow's destructor.
This should have already been closed before we get to the destructor. Otherwise we get double deletes since the Destroy() call can end up calling the delegate which will delete this object.
Also in the X11 implementation, don't call delegate's OnClosed() before null'ing xwindow_, otherwise Destroy() can be called multiple times.
This is split off https://codereview.chromium.org/1139673003
BUG=484234
Committed: https://crrev.com/133ead2f6c4ecf2efb8905fb4cbfaada614847fc
Cr-Commit-Position: refs/heads/master@{#330381}
Patch Set 1 #
Messages
Total messages: 12 (4 generated)
|