toytoolkit: Don't segfault on window close
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 28 Oct 2013 02:32:54 +0000 (21:32 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 30 Oct 2013 15:40:24 +0000 (08:40 -0700)
Without this commit, the client will segmentation fault due to accessing
the frame after everything has been destroyed.

clients/window.c

index e9acacf..dd6a213 100644 (file)
@@ -2396,7 +2396,7 @@ frame_handle_status(struct window_frame *frame, struct input *input,
                                              window->user_data);
                else
                        display_exit(window->display);
-               frame_status_clear(frame->frame, FRAME_STATUS_CLOSE);
+               return;
        }
 
        if ((status & FRAME_STATUS_MOVE) && window->shell_surface) {