File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 25
25
#include " base/message_loop.h"
26
26
#include " base/values.h"
27
27
#include " content/nw/src/api/api_messages.h"
28
+ #include " content/nw/src/browser/native_window.h"
28
29
#include " content/nw/src/browser/net_disk_cache_remover.h"
29
30
#include " content/nw/src/nw_package.h"
30
31
#include " content/nw/src/nw_shell.h"
@@ -131,7 +132,9 @@ void App::CloseAllWindows(bool force) {
131
132
if (!windows[i]->is_devtools ()) {
132
133
// If there is no js object bound to the window, then just close.
133
134
if (force || windows[i]->ShouldCloseWindow ())
134
- delete windows[i];
135
+ // we used to delete the Shell object here
136
+ // but it should be deleted on native window destruction
137
+ windows[i]->window ()->Close ();
135
138
}
136
139
}
137
140
}
You can’t perform that action at this time.
0 commit comments