diff --git a/plugins/sip/calls-sip-provider.c b/plugins/sip/calls-sip-provider.c index 473530a..096c164 100644 --- a/plugins/sip/calls-sip-provider.c +++ b/plugins/sip/calls-sip-provider.c @@ -363,6 +363,8 @@ add_account (CallsAccountProvider *acc_provider, self = CALLS_SIP_PROVIDER (acc_provider); + g_object_ref (acc_provider); + return !!calls_sip_provider_add_origin (self, credentials, 0, FALSE); } @@ -391,6 +393,8 @@ remove_account (CallsAccountProvider *acc_provider, g_hash_table_remove (self->credentials, credentials); g_list_store_remove (self->origins, position); + g_object_unref (acc_provider); + return TRUE; }