From d2a5c14b7780e633fdf53b57b27deca923e92786 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 16 Mar 2023 12:40:21 +0100 Subject: [PATCH] sip-origin: Use g_clear_pointer() instead of emulating it --- plugins/provider/sip/calls-sip-origin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/provider/sip/calls-sip-origin.c b/plugins/provider/sip/calls-sip-origin.c index 09ee825..6e0e140 100644 --- a/plugins/provider/sip/calls-sip-origin.c +++ b/plugins/provider/sip/calls-sip-origin.c @@ -1248,8 +1248,7 @@ deinit_sip_account (CallsSipOrigin *self) return FALSE; } g_debug ("nua_shutdown() complete. Destroying nua handle"); - nua_destroy (self->nua); - self->nua = NULL; + g_clear_pointer (&self->nua, nua_destroy); } g_clear_pointer (&self->own_ip, g_free);