[calls] mm-provider: Don't leak MMManager
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] mm-provider: Don't leak MMManager
- Date: Sat, 3 Sep 2022 16:40:35 +0000 (UTC)
commit f44e8025c9039d76fde585fa6daf521e64f26e26
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Sat Sep 3 11:03:39 2022 +0200
mm-provider: Don't leak MMManager
plugins/provider/mm/calls-mm-provider.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/plugins/provider/mm/calls-mm-provider.c b/plugins/provider/mm/calls-mm-provider.c
index 64d05554..a850ac5e 100644
--- a/plugins/provider/mm/calls-mm-provider.c
+++ b/plugins/provider/mm/calls-mm-provider.c
@@ -324,6 +324,9 @@ mm_vanished_cb (GDBusConnection *connection,
CallsMMProvider *self)
{
g_debug ("ModemManager vanished from D-Bus");
+
+ g_clear_object (&self->mm);
+
g_list_store_remove_all (self->origins);
update_status (self);
}
@@ -387,6 +390,8 @@ dispose (GObject *object)
{
CallsMMProvider *self = CALLS_MM_PROVIDER (object);
+ g_clear_object (&self->mm);
+
g_clear_handle_id (&self->watch_id, g_bus_unwatch_name);
g_list_store_remove_all (self->origins);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]