diff --git a/libweston/backend-drm/drm.c b/libweston/backend-drm/drm.c index e7fd788d..6990eac2 100644 --- a/libweston/backend-drm/drm.c +++ b/libweston/backend-drm/drm.c @@ -2515,9 +2515,9 @@ drm_destroy(struct weston_compositor *ec) udev_monitor_unref(b->udev_monitor); udev_unref(b->udev); + weston_launcher_close(ec->launcher, b->drm.fd); weston_launcher_destroy(ec->launcher); - close(b->drm.fd); free(b->drm.filename); free(b); }