diff options
-rw-r--r-- | src/ui/window.c | 6 |
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 | ||
516 | void deinit_Window(iWindow *d) { | 516 | void 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(); |