diff --git a/src/backend/tty.rs b/src/backend/tty.rs index 2f2e7a90..5646e8d3 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -66,14 +66,16 @@ type GbmDrmCompositor = DrmCompositor< struct OutputDevice { id: dev_t, token: RegistrationToken, - drm: DrmDevice, - gbm: GbmDevice, gles: GlesRenderer, formats: HashSet, drm_scanner: DrmScanner, surfaces: HashMap, dmabuf_state: DmabufState, dmabuf_global: DmabufGlobal, + // SAFETY: drop after all the objects used with them are dropped. + // See https://github.com/Smithay/smithay/issues/1102. + drm: DrmDevice, + gbm: GbmDevice, } #[derive(Debug, Clone, Copy)]