diff --git a/telepathy-sasl-signon/empathy-uoa-auth-handler.c b/telepathy-sasl-signon/empathy-uoa-auth-handler.c index dcfaf1a..c4d47d7 100644 --- a/telepathy-sasl-signon/empathy-uoa-auth-handler.c +++ b/telepathy-sasl-signon/empathy-uoa-auth-handler.c @@ -370,7 +370,8 @@ empathy_uoa_auth_handler_start (EmpathyUoaAuthHandler *self, if (l == NULL) { DEBUG ("Couldn't find IM service for AgAccountId %u", id); - g_object_unref (account); + if (account != NULL) + g_object_unref (account); tp_channel_close_async (channel, NULL, NULL); return; }