diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-10-08 08:24:57 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-10-08 08:24:57 +0000 |
commit | 8aaaeda920cfcf244986fb72af9ae196a1331f58 (patch) | |
tree | 29f69ca8f1ee9ac8bf7a748956fa5dda32f7c0cd /src/query_search.c | |
parent | 49512277c5f84670f32b51028b35f4985b84a409 (diff) |
destroy async queue when finished.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2279 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/query_search.c')
-rw-r--r-- | src/query_search.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/query_search.c b/src/query_search.c index 17755555..3c5832e1 100644 --- a/src/query_search.c +++ b/src/query_search.c @@ -598,6 +598,8 @@ static gpointer query_search_folder_func(gpointer data) debug_print("query_search_folder_func start\n"); + g_async_queue_ref(qdata->queue); + mlist = folder_item_get_msg_list(qdata->item, TRUE); qdata->total = g_slist_length(mlist); @@ -657,6 +659,7 @@ static gpointer query_search_folder_func(gpointer data) } procmsg_msg_list_free(mlist); + g_async_queue_unref(qdata->queue); qdata->flag = 1; g_main_context_wakeup(NULL); @@ -719,7 +722,7 @@ static void query_search_folder(FolderItem *item) g_thread_join(thread); debug_print("query_search_folder: thread exited\n"); - g_async_queue_free(data.queue); + g_async_queue_unref(data.queue); #else /* !USE_THREADS */ query_search_folder_func(&data); #endif |