fix(linux/wlr): Fix dmabuf buffer params protocol violation/leak (#4588)

This commit is contained in:
Dregu 2026-01-16 20:19:45 +02:00 committed by GitHub
commit cf7b0dc7d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}