[evolution-ews] Fix leak of 'file' in camel_ews_store_summary_save()



commit 4a90b0c1a8d57c18addaad3332eb5adfee878e99
Author: David Woodhouse <David Woodhouse intel com>
Date:   Sun Aug 14 00:19:48 2011 +0100

    Fix leak of 'file' in camel_ews_store_summary_save()

 src/camel/camel-ews-store-summary.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-ews-store-summary.c b/src/camel/camel-ews-store-summary.c
index 0b65a3c..678c5a6 100644
--- a/src/camel/camel-ews-store-summary.c
+++ b/src/camel/camel-ews-store-summary.c
@@ -203,6 +203,7 @@ camel_ews_store_summary_save (CamelEwsStoreSummary *ews_summary,
 	ret = g_file_replace_contents	(file, contents, strlen (contents),
 					 NULL, FALSE, G_FILE_CREATE_PRIVATE,
 					 NULL, NULL, error);
+	g_object_unref (file);
 	priv->dirty = FALSE;
 
 exit:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]