From f7626e532fdf5fb5ce950c27fa02e8caf4e7e504 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 9 Apr 2021 18:15:37 +0200 Subject: [PATCH] sip: provider: use g_clear_pointer pattern instead of emulating it --- plugins/sip/calls-sip-provider.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/sip/calls-sip-provider.c b/plugins/sip/calls-sip-provider.c index 52476ae..0122ac0 100644 --- a/plugins/sip/calls-sip-provider.c +++ b/plugins/sip/calls-sip-provider.c @@ -337,8 +337,7 @@ calls_sip_provider_dispose (GObject *object) g_list_store_remove_all (self->origins); g_clear_object (&self->origins); - g_free (self->filename); - self->filename = NULL; + g_clear_pointer (&self->filename, g_free); calls_sip_provider_deinit_sip (self);