Skip to content

Commit

Permalink
chore: destory it
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Aug 18, 2023
1 parent 84391c1 commit 932147e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libwayshot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ impl WayshotConnection {
log::error!("You can send a feature request for the above format to the mailing list for wayshot over at https://sr.ht/~shinyzenith/wayshot.");
return Err(Error::NoSupportedBufferFormat);
};
buffer.destroy();
shm_pool.destroy();
return Ok(FrameCopy {
frame_format,
frame_color_type,
Expand Down

0 comments on commit 932147e

Please sign in to comment.