compositor-wayland: Only destroy the egl_window when using GLES.

This prevents a segfault when unplugging an output when using pixman.

Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot@collabora.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
dev
Emmanuel Gil Peyrot 8 years ago committed by Quentin Glidic
parent 1714f01e0c
commit 85571a3002
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
  1. 2
      libweston/compositor-wayland.c

@ -627,9 +627,9 @@ wayland_output_destroy(struct weston_output *output_base)
pixman_renderer_output_destroy(output_base); pixman_renderer_output_destroy(output_base);
} else { } else {
gl_renderer->output_destroy(output_base); gl_renderer->output_destroy(output_base);
wl_egl_window_destroy(output->gl.egl_window);
} }
wl_egl_window_destroy(output->gl.egl_window);
wl_surface_destroy(output->parent.surface); wl_surface_destroy(output->parent.surface);
if (output->parent.shell_surface) if (output->parent.shell_surface)
wl_shell_surface_destroy(output->parent.shell_surface); wl_shell_surface_destroy(output->parent.shell_surface);

Loading…
Cancel
Save