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:
parent
dbb939eca7
commit
8a230fc5b5
1 changed files with 2 additions and 7 deletions
|
@ -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 ()");
|
||||
|
|
Loading…
Reference in a new issue