mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Do not receive notifications after window is closed, fixes #265.
This commit is contained in:
@@ -357,6 +357,10 @@ void NativeWindow::NotifyWindowClosed() {
|
||||
is_closed_ = true;
|
||||
FOR_EACH_OBSERVER(NativeWindowObserver, observers_, OnWindowClosed());
|
||||
|
||||
// Do not receive any notification after window has been closed, there is a
|
||||
// crash that seems to be caused by this: http://git.io/YqMG5g.
|
||||
registrar_.RemoveAll();
|
||||
|
||||
WindowList::RemoveWindow(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user