[evolution-data-server/gnome-3-0] Bug #645845 - Fix memory leak in get_changes()



commit 4078d6ff4229b65af98b4674ca42edb9b130702b
Author: Robert Peto <robert peto maemo org>
Date:   Mon Apr 18 19:22:01 2011 +0200

    Bug #645845 - Fix memory leak in get_changes()

 addressbook/backends/file/e-book-backend-file.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/addressbook/backends/file/e-book-backend-file.c b/addressbook/backends/file/e-book-backend-file.c
index 5020a0f..bdb0d4d 100644
--- a/addressbook/backends/file/e-book-backend-file.c
+++ b/addressbook/backends/file/e-book-backend-file.c
@@ -736,9 +736,9 @@ e_book_backend_file_changes_foreach_key (const gchar *key, gpointer user_data)
 						vcard_string);
 
 		g_object_unref (contact);
-
-		g_free (vcard_dbt.data);
 	}
+
+	g_free (vcard_dbt.data);
 }
 
 static void



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