diff --git a/src/wayland/buffer.rs b/src/wayland/buffer.rs index 8af08a5..37ccb19 100644 --- a/src/wayland/buffer.rs +++ b/src/wayland/buffer.rs @@ -83,8 +83,6 @@ impl AppData { (), ); - pool.destroy(); - let format = wl_shm::Format::try_from(format).unwrap(); let buffer = pool.create_buffer( 0, @@ -96,6 +94,8 @@ impl AppData { (), ); + pool.destroy(); + Buffer { backing: Arc::new( Shmbuf {