Skip to content

Commit afa87bb

Browse files
committed
wayland: Release wl_shm
1 parent 1e8ee18 commit afa87bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backends/wayland/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ impl<D: HasDisplayHandle + ?Sized> ContextInterface<D> for Arc<WaylandDisplayImp
8181

8282
impl<D: ?Sized> Drop for WaylandDisplayImpl<D> {
8383
fn drop(&mut self) {
84+
if self.shm.version() >= 2 {
85+
self.shm.release();
86+
}
8487
// Make sure the connection is dropped first.
8588
self.conn = None;
8689
}

0 commit comments

Comments
 (0)