1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-06 11:35:32 +00:00

sip: origin: No need to explicitly clear nua handles

Memory allocations from su_home_t will get cleaned up, when the home is freed.
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-06-21 13:06:09 +02:00
parent dbb939eca7
commit 8a230fc5b5

View file

@ -1158,13 +1158,8 @@ calls_sip_origin_dispose (GObject *object)
remove_calls (self, NULL);
if (self->oper) {
g_clear_pointer (&self->oper->call_handle, nua_handle_unref);
g_clear_pointer (&self->oper->register_handle, nua_handle_unref);
if (!self->use_direct_connection && self->state != CALLS_ACCOUNT_OFFLINE)
go_online (CALLS_ACCOUNT (self), FALSE);
}
if (!self->use_direct_connection && self->state == CALLS_ACCOUNT_ONLINE)
go_online (CALLS_ACCOUNT (self), FALSE);
if (self->nua) {
g_debug ("Requesting nua_shutdown ()");