wayland: fix memory leak in wlr-data-control
This commit is contained in:
parent
8cee61122e
commit
a46ab007df
1 changed files with 3 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ use {
|
||||||
client::{Client, ClientError},
|
client::{Client, ClientError},
|
||||||
ifs::{
|
ifs::{
|
||||||
ipc::{
|
ipc::{
|
||||||
destroy_data_device,
|
break_device_loops, destroy_data_device,
|
||||||
zwlr_data_control_device_v1::private::{
|
zwlr_data_control_device_v1::private::{
|
||||||
WlrClipboardIpcCore, WlrIpcImpl, WlrPrimarySelectionIpcCore,
|
WlrClipboardIpcCore, WlrIpcImpl, WlrPrimarySelectionIpcCore,
|
||||||
},
|
},
|
||||||
|
|
@ -282,6 +282,8 @@ object_base! {
|
||||||
|
|
||||||
impl Object for ZwlrDataControlDeviceV1 {
|
impl Object for ZwlrDataControlDeviceV1 {
|
||||||
fn break_loops(&self) {
|
fn break_loops(&self) {
|
||||||
|
break_device_loops::<WlrClipboardIpc>(self);
|
||||||
|
break_device_loops::<WlrPrimarySelectionIpc>(self);
|
||||||
self.seat.remove_wlr_device(self);
|
self.seat.remove_wlr_device(self);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue