Commit 202ea6ff authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Wayland/shell: fix NULL dereference in pathological case

parent 0fd8c3bb
...@@ -300,7 +300,8 @@ static void Close(vout_window_t *wnd) ...@@ -300,7 +300,8 @@ static void Close(vout_window_t *wnd)
wl_shell_surface_destroy(sys->shell_surface); wl_shell_surface_destroy(sys->shell_surface);
wl_surface_destroy(wnd->handle.wl); wl_surface_destroy(wnd->handle.wl);
wl_shell_destroy(sys->shell); wl_shell_destroy(sys->shell);
wl_output_destroy(sys->output); if (sys->output != NULL)
wl_output_destroy(sys->output);
wl_compositor_destroy(sys->compositor); wl_compositor_destroy(sys->compositor);
wl_display_disconnect(wnd->display.wl); wl_display_disconnect(wnd->display.wl);
free(sys); free(sys);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment