all: fix memory leaks
This commit is contained in:
parent
e212e0b8b1
commit
9904717c71
18 changed files with 149 additions and 10 deletions
|
|
@ -20,6 +20,14 @@ use {
|
|||
};
|
||||
|
||||
impl DbusSocket {
|
||||
pub fn clear(&self) {
|
||||
self.auth.take();
|
||||
self.incoming.take();
|
||||
self.outgoing_.take();
|
||||
self.reply_handlers.clear();
|
||||
self.signal_handlers.borrow_mut().clear();
|
||||
}
|
||||
|
||||
pub(super) fn kill(self: &Rc<Self>) {
|
||||
self.dead.set(true);
|
||||
self.auth.take();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue