From 9c8e70088cfd78d6ddd8480bb34ca091f1681af8 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Wed, 18 Jan 2023 21:12:52 +0100 Subject: [PATCH] mm-origin: Don't leak MMModemVoice mm_object_get_modem_voice() is transfer full, so we need to unref it when we're done. --- plugins/provider/mm/calls-mm-origin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/provider/mm/calls-mm-origin.c b/plugins/provider/mm/calls-mm-origin.c index 3afa189..5433195 100644 --- a/plugins/provider/mm/calls-mm-origin.c +++ b/plugins/provider/mm/calls-mm-origin.c @@ -820,6 +820,7 @@ dispose (GObject *object) CallsMMOrigin *self = CALLS_MM_ORIGIN (object); remove_calls (self, NULL); + g_clear_object (&self->voice); g_clear_object (&self->mm_obj); g_clear_object (&self->ussd); g_clear_object (&self->sim);