aboutsummaryrefslogtreecommitdiff
path: root/src/query_search.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-08 08:26:09 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-08 08:26:09 +0000
commite20034ceb52cf26abfbc50450e5938e9a478d7b3 (patch)
tree99e57a3aca3be08d4247e71543084b5a2c08726b /src/query_search.c
parent8aaaeda920cfcf244986fb72af9ae196a1331f58 (diff)
fixed compilation without thread support.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2280 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/query_search.c')
-rw-r--r--src/query_search.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/query_search.c b/src/query_search.c
index 3c5832e1..30e7ff51 100644
--- a/src/query_search.c
+++ b/src/query_search.c
@@ -598,7 +598,9 @@ static gpointer query_search_folder_func(gpointer data)
debug_print("query_search_folder_func start\n");
+#if USE_THREADS
g_async_queue_ref(qdata->queue);
+#endif
mlist = folder_item_get_msg_list(qdata->item, TRUE);
qdata->total = g_slist_length(mlist);
@@ -659,7 +661,9 @@ static gpointer query_search_folder_func(gpointer data)
}
procmsg_msg_list_free(mlist);
+#if USE_THREADS
g_async_queue_unref(qdata->queue);
+#endif
qdata->flag = 1;
g_main_context_wakeup(NULL);