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
parent 6400522809
commit cf7b0dc7d3
+2
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;
}