1
0
Fork 0
forked from wry/wry

wayland: fix memory leak in wlr-data-control

This commit is contained in:
Julian Orth 2024-05-02 19:47:14 +02:00
parent 8cee61122e
commit a46ab007df

View file

@ -3,7 +3,7 @@ use {
client::{Client, ClientError},
ifs::{
ipc::{
destroy_data_device,
break_device_loops, destroy_data_device,
zwlr_data_control_device_v1::private::{
WlrClipboardIpcCore, WlrIpcImpl, WlrPrimarySelectionIpcCore,
},
@ -282,6 +282,8 @@ object_base! {
impl Object for ZwlrDataControlDeviceV1 {
fn break_loops(&self) {
break_device_loops::<WlrClipboardIpc>(self);
break_device_loops::<WlrPrimarySelectionIpc>(self);
self.seat.remove_wlr_device(self);
}
}