1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-16 05:15:36 +00:00

sip-origin: Use g_clear_pointer() instead of emulating it

This commit is contained in:
Evangelos Ribeiro Tzaras 2023-03-16 12:40:21 +01:00
parent ae687b02aa
commit d2a5c14b77

View file

@ -1248,8 +1248,7 @@ deinit_sip_account (CallsSipOrigin *self)
return FALSE; return FALSE;
} }
g_debug ("nua_shutdown() complete. Destroying nua handle"); g_debug ("nua_shutdown() complete. Destroying nua handle");
nua_destroy (self->nua); g_clear_pointer (&self->nua, nua_destroy);
self->nua = NULL;
} }
g_clear_pointer (&self->own_ip, g_free); g_clear_pointer (&self->own_ip, g_free);