From eeb97c82c020eb40294a730dfd761cd6aa49df46 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Mon, 10 Jan 2022 08:27:08 +0100 Subject: [PATCH] sip: origin: Purge own IP when uninitialising account This will make sure that we're not using a stale IP address if we're resetting the account after an IP change. --- plugins/sip/calls-sip-origin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c index fc79a5e..7fb9bdb 100644 --- a/plugins/sip/calls-sip-origin.c +++ b/plugins/sip/calls-sip-origin.c @@ -1091,6 +1091,7 @@ deinit_sip_account (CallsSipOrigin *self) self->nua = NULL; } + g_clear_pointer (&self->own_ip, g_free); self->state = CALLS_ACCOUNT_NULL; return TRUE; }