Skip to content

Commit

Permalink
Fix memory leak by destroying WlBuffer after usage
Browse files Browse the repository at this point in the history
  • Loading branch information
maximbaz committed Oct 23, 2024
1 parent 9f93910 commit 19ec169
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/frame/capturer/wayland.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ impl Dispatch<ZwlrScreencopyFrameV1, ()> for Capturer {
);

frame.copy(&buffer);
buffer.destroy();

state.pending_frame = Some(pending_frame);
}

Expand Down

0 comments on commit 19ec169

Please sign in to comment.