all: fix memory leaks
This commit is contained in:
parent
56e3eee629
commit
e5c0916a25
15 changed files with 147 additions and 54 deletions
|
|
@ -154,6 +154,13 @@ impl NodeSeatState {
|
|||
self.dnd_targets.remove(&seat.id);
|
||||
self.pointer_grabs.remove(&seat.id);
|
||||
}
|
||||
|
||||
pub fn clear(&self) {
|
||||
self.kb_foci.clear();
|
||||
self.pointer_foci.clear();
|
||||
self.dnd_targets.clear();
|
||||
self.pointer_grabs.clear();
|
||||
}
|
||||
}
|
||||
|
||||
impl WlSeatGlobal {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue