evolution-data-server r9313 - trunk/camel
- From: sragavan svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9313 - trunk/camel
- Date: Mon, 11 Aug 2008 06:24:57 +0000 (UTC)
Author: sragavan
Date: Mon Aug 11 06:24:57 2008
New Revision: 9313
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9313&view=rev
Log:
2008-08-11 Srinivasa Ragavan <sragavan novell com>
* camel/camel-vee-folder.c: Save the count on exit.
Modified:
trunk/camel/ChangeLog
trunk/camel/camel-vee-folder.c
Modified: trunk/camel/camel-vee-folder.c
==============================================================================
--- trunk/camel/camel-vee-folder.c (original)
+++ trunk/camel/camel-vee-folder.c Mon Aug 11 06:24:57 2008
@@ -2046,11 +2046,15 @@
struct _CamelVeeFolderPrivate *p = _PRIVATE(vf);
CamelVeeFolder *folder_unmatched = vf->parent_vee_store ? vf->parent_vee_store->folder_unmatched : NULL;
GList *node;
+ CamelFIRecord * record;
p->destroyed = TRUE;
- /* TODO: there may be other leaks? */
-
+ /* Save the counts to DB */
+ record = summary_header_to_db (((CamelFolder *)vf)->summary, NULL);
+ camel_db_write_folder_info_record (((CamelFolder *) vf)->parent_store->cdb, record, NULL);
+ g_free (record);
+
/* This may invoke sub-classes with partially destroyed state, they must deal with this */
if (vf == folder_unmatched) {
for (node = p->folders;node;node = g_list_next(node))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]