From 432b4826ca89f0dea45afa3ea5045bee6f9ed606 Mon Sep 17 00:00:00 2001 From: John Brooks Date: Tue, 20 May 2014 06:29:06 -0600 Subject: [PATCH] [telepathy-sasl-signon] Fix crash on invalid account IDs --- telepathy-sasl-signon/empathy-uoa-auth-handler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }