evolution-data-server r8842 - branches/camel-db-summary/camel
- From: psankar svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r8842 - branches/camel-db-summary/camel
- Date: Fri, 23 May 2008 20:17:18 +0000 (UTC)
Author: psankar
Date: Fri May 23 20:17:18 2008
New Revision: 8842
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8842&view=rev
Log:
Fix a memory leak. Missing unref.
Modified:
branches/camel-db-summary/camel/camel-folder-summary.c
Modified: branches/camel-db-summary/camel/camel-folder-summary.c
==============================================================================
--- branches/camel-db-summary/camel/camel-folder-summary.c (original)
+++ branches/camel-db-summary/camel/camel-folder-summary.c Fri May 23 20:17:18 2008
@@ -556,6 +556,7 @@
CamelFIRecord *record;
CamelException ex;// May be this should come from the provider
char *folder_name;
+ int ret = 0;
d(printf ("\ncamel_folder_summary_load_from_db called \n"));
@@ -569,15 +570,16 @@
if (record) {
if ( ((CamelFolderSummaryClass *)(CAMEL_OBJECT_GET_CLASS(s)))->summary_header_from_db (s, record) == -1)
- return -1;
+ ret = -1;
} else {
- return -1;
+ ret = -1;
}
+ g_free (record);
/* FIXME: What about message-info ? Ye Need to load them. */
- return 0;
+ return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]