aboutsummaryrefslogtreecommitdiff
path: root/src/query_search.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-08 07:08:23 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2009-10-08 07:08:23 +0000
commite3b226db74ed298ef67e0f2a9683197944ba5c8e (patch)
tree9abc80a5751a5dbc3292c52bd11074ad711283ab /src/query_search.c
parentc0dda2d3e74d3487f144c8a192c33fec1169a360 (diff)
fixed compilation without thread support.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2277 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/query_search.c')
-rw-r--r--src/query_search.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/query_search.c b/src/query_search.c
index 770463ca..17755555 100644
--- a/src/query_search.c
+++ b/src/query_search.c
@@ -589,7 +589,6 @@ static void query_search_folder_show_progress(QueryData *data)
#endif
}
-#if USE_THREADS
static gpointer query_search_folder_func(gpointer data)
{
QueryData *qdata = (QueryData *)data;
@@ -666,15 +665,16 @@ static gpointer query_search_folder_func(gpointer data)
return GINT_TO_POINTER(0);
}
-#endif
static void query_search_folder(FolderItem *item)
{
- GThread *thread;
gchar *str;
QueryData data = {item};
+#if USE_THREADS
+ GThread *thread;
gint prev_count = 0;
MsgInfo *msginfo;
+#endif
if (!item->path || item->stype == F_VIRTUAL)
return;
@@ -718,12 +718,13 @@ static void query_search_folder(FolderItem *item)
g_thread_join(thread);
debug_print("query_search_folder: thread exited\n");
-#else
+
+ g_async_queue_free(data.queue);
+#else /* !USE_THREADS */
query_search_folder_func(&data);
#endif
procmsg_set_auto_decrypt_message(TRUE);
-
g_free(data.folder_name);
}