evolution-data-server r8934 - branches/camel-db-summary/camel
- From: psankar svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r8934 - branches/camel-db-summary/camel
- Date: Thu, 5 Jun 2008 11:16:19 +0000 (UTC)
Author: psankar
Date: Thu Jun 5 11:16:18 2008
New Revision: 8934
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8934&view=rev
Log:
Threading dudie.... Threading. Who will use otherwise ?
Modified:
branches/camel-db-summary/camel/camel-folder-thread.c
Modified: branches/camel-db-summary/camel/camel-folder-thread.c
==============================================================================
--- branches/camel-db-summary/camel/camel-folder-thread.c (original)
+++ branches/camel-db-summary/camel/camel-folder-thread.c Thu Jun 5 11:16:18 2008
@@ -621,12 +621,15 @@
fsummary = camel_folder_get_summary(folder);
thread->summary = summary = g_ptr_array_new();
- for (i=0;i<fsummary->len;i++) {
- CamelMessageInfo *info = fsummary->pdata[i];
-
- if (wanted == NULL || g_hash_table_lookup(wanted, camel_message_info_uid(info)) != NULL) {
- camel_folder_ref_message_info(folder, info);
- g_ptr_array_add(summary, info);
+ for (i = 0 ; i < fsummary->len ; i++) {
+ CamelMessageInfo *info ;
+ char *uid = fsummary->pdata[i];
+
+ if (wanted == NULL || g_hash_table_lookup(wanted, uid) != NULL) {
+ info = camel_folder_get_message_info (folder, uid);
+ if (info)
+ g_ptr_array_add(summary, info);
+ /* FIXME: Check if the info is leaking */
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]