summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-05-14 12:30:07 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-05-14 12:30:07 +0300
commitc973e982992e500259cad207d0c555249c0ccfb8 (patch)
tree8610992a0a853bc15a12903992cfad73bfc3730f /src/ui
parentf51ad9fe9634c33e69e42bb04beec3db896c323f (diff)
Window: Fixed crash at shutdown
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index 99430a05..232d15e8 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -515,15 +515,15 @@ void init_Window(iWindow *d, iRect rect) {
515 515
516void deinit_Window(iWindow *d) { 516void deinit_Window(iWindow *d) {
517 iRecycle(); 517 iRecycle();
518 if (theWindow_ == d) {
519 theWindow_ = NULL;
520 }
521 iForIndices(i, d->roots) { 518 iForIndices(i, d->roots) {
522 if (d->roots[i]) { 519 if (d->roots[i]) {
523 setCurrent_Root(d->roots[i]); 520 setCurrent_Root(d->roots[i]);
524 deinit_Root(d->roots[i]); 521 deinit_Root(d->roots[i]);
525 } 522 }
526 } 523 }
524 if (theWindow_ == d) {
525 theWindow_ = NULL;
526 }
527 setCurrent_Root(NULL); 527 setCurrent_Root(NULL);
528 delete_String(d->pendingSplitUrl); 528 delete_String(d->pendingSplitUrl);
529 deinit_Text(); 529 deinit_Text();