diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/wm/wm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/wm/wm.c b/apps/wm/wm.c index 8f3b21f..00dedd0 100644 --- a/apps/wm/wm.c +++ b/apps/wm/wm.c @@ -462,6 +462,7 @@ static void handle_message(void *msg) static void handle_exit(void) { + log("Handle\n"); if (keymap) free(keymap); @@ -472,10 +473,8 @@ static void handle_exit(void) struct node *iterator = windows->head; while (iterator) { struct window *win = iterator->data; - if (win->ctx.fb == screen.fb) + if (win->ctx.fb) sys_free(win->ctx.fb); - else if (win->ctx.fb) - free(win->ctx.fb); free(win); iterator = iterator->next; } |