all: fix memory leaks
This commit is contained in:
parent
e212e0b8b1
commit
9904717c71
18 changed files with 149 additions and 10 deletions
|
|
@ -82,6 +82,11 @@ pub struct WlOutputGlobal {
|
|||
}
|
||||
|
||||
impl WlOutputGlobal {
|
||||
pub fn clear(&self) {
|
||||
self.node.take();
|
||||
self.bindings.borrow_mut().clear();
|
||||
}
|
||||
|
||||
pub fn new(
|
||||
name: GlobalName,
|
||||
state: &Rc<State>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue