We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
wl_shm
1 parent 1e8ee18 commit afa87bbCopy full SHA for afa87bb
src/backends/wayland/mod.rs
@@ -81,6 +81,9 @@ impl<D: HasDisplayHandle + ?Sized> ContextInterface<D> for Arc<WaylandDisplayImp
81
82
impl<D: ?Sized> Drop for WaylandDisplayImpl<D> {
83
fn drop(&mut self) {
84
+ if self.shm.version() >= 2 {
85
+ self.shm.release();
86
+ }
87
// Make sure the connection is dropped first.
88
self.conn = None;
89
}
0 commit comments