fix(linux/wlr): Fix dmabuf buffer params protocol violation/leak (#4588)
This commit is contained in:
parent
6400522809
commit
cf7b0dc7d3
1 changed files with 2 additions and 0 deletions
|
|
@ -454,6 +454,7 @@ namespace wl {
|
|||
self->current_wl_buffer = buffer;
|
||||
|
||||
// Start the actual copy
|
||||
zwp_linux_buffer_params_v1_destroy(params);
|
||||
zwlr_screencopy_frame_v1_copy(frame, buffer);
|
||||
}
|
||||
|
||||
|
|
@ -468,6 +469,7 @@ namespace wl {
|
|||
BOOST_LOG(error) << "Failed to create buffer from params"sv;
|
||||
self->cleanup_gbm();
|
||||
|
||||
zwp_linux_buffer_params_v1_destroy(params);
|
||||
zwlr_screencopy_frame_v1_destroy(frame);
|
||||
self->status = REINIT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue