From 74019315af1b63febead98827d643c0f8253ed8a Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Mon, 6 Dec 2010 18:06:41 +0100 Subject: [PATCH] Don't free the search results if there are none --- telepathy-logger/log-manager.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/telepathy-logger/log-manager.c b/telepathy-logger/log-manager.c index 863580d..e7cd52c 100644 --- a/telepathy-logger/log-manager.c +++ b/telepathy-logger/log-manager.c @@ -1584,8 +1584,9 @@ _search_async_thread (GSimpleAsyncResult *simple, lst = _tpl_log_manager_search (async_data->manager, chat_info->search_text); - g_simple_async_result_set_op_res_gpointer (simple, lst, - _search_new_async_result_free); + if (lst) + g_simple_async_result_set_op_res_gpointer (simple, lst, + _search_new_async_result_free); } /** -- 1.7.2.3