compositor-drm: Destroy sprites before destroying the outputs

Kristian Høgsberg 12 years ago
parent a0868a2d64
commit 3d64a3e868
  1. 4
      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->udev_drm_source);
wl_event_source_remove(d->drm_source); wl_event_source_remove(d->drm_source);
destroy_sprites(d);
weston_compositor_shutdown(ec); weston_compositor_shutdown(ec);
ec->renderer->destroy(ec); ec->renderer->destroy(ec);
destroy_sprites(d);
if (d->gbm) if (d->gbm)
gbm_device_destroy(d->gbm); gbm_device_destroy(d->gbm);

Loading…
Cancel
Save