diff options
author | Simon Howard | 2011-10-23 19:42:43 +0000 |
---|---|---|
committer | Simon Howard | 2011-10-23 19:42:43 +0000 |
commit | 8ee96dadb97afad79ce77eef6da94a67db6be62b (patch) | |
tree | e41774fba2da915e96f3fc0d4609b43d90625303 /textscreen | |
parent | cc7a430448e4fcee6a0ac6ad3acfd6d0aa08767a (diff) | |
download | chocolate-doom-8ee96dadb97afad79ce77eef6da94a67db6be62b.tar.gz chocolate-doom-8ee96dadb97afad79ce77eef6da94a67db6be62b.tar.bz2 chocolate-doom-8ee96dadb97afad79ce77eef6da94a67db6be62b.zip |
Fix crash when closing a window.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2462
Diffstat (limited to 'textscreen')
-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) |