backend/wayland: fix segfault when destroying backend before starting it

This commit is contained in:
emersion 2018-05-19 09:34:16 +01:00
parent 75b10cd621
commit 9e3dd6b560
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -87,7 +87,9 @@ static void backend_destroy(struct wlr_backend *wlr_backend) {
free(backend->seat_name); free(backend->seat_name);
if (backend->remote_display_src) {
wl_event_source_remove(backend->remote_display_src); wl_event_source_remove(backend->remote_display_src);
}
wlr_renderer_destroy(backend->renderer); wlr_renderer_destroy(backend->renderer);
wlr_egl_finish(&backend->egl); wlr_egl_finish(&backend->egl);
if (backend->pointer) { if (backend->pointer) {