diff options
-rw-r--r-- | textscreen/txt_window.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c index 62f3ac8a..d33dd75b 100644 --- a/textscreen/txt_window.c +++ b/textscreen/txt_window.c @@ -95,6 +95,7 @@ void TXT_CloseWindow(txt_window_t *window) int i; TXT_EmitSignal(window, "closed"); + TXT_RemoveDesktopWindow(window); free(window->title); @@ -111,8 +112,6 @@ void TXT_CloseWindow(txt_window_t *window) // Destroy table and window TXT_DestroyWidget(window); - - TXT_RemoveDesktopWindow(window); } static void CalcWindowPosition(txt_window_t *window) |