Bug #652627 - Invalid unref on a NULL pointer from query_cb

This commit is contained in:
Milan Crha
2011-06-29 12:02:14 +02:00
committed by Rodrigo Moya
parent 8faaef3ec6
commit 85f66e2199

View File

@ -642,7 +642,8 @@ query_cb (GObject *source_object, GAsyncResult *result, gpointer user_data)
info->cb (info->contact, best_contact, best_match, info->closure);
match_search_info_free (info);
g_object_unref (book_client);
g_object_unref (best_contact);
if (best_contact)
g_object_unref (best_contact);
}
#define MAX_QUERY_PARTS 10