mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 04:15:32 +00:00
mm-provider: Don't leak MMManager
This commit is contained in:
parent
d0c4374a0b
commit
f44e8025c9
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue