diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 91f5ea55..bb8ea46c 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -2145,12 +2145,12 @@ drm_destroy(struct weston_compositor *ec) wl_event_source_remove(d->udev_drm_source); wl_event_source_remove(d->drm_source); + destroy_sprites(d); + weston_compositor_shutdown(ec); ec->renderer->destroy(ec); - destroy_sprites(d); - if (d->gbm) gbm_device_destroy(d->gbm);