[gnac/devel] Fixed memory leaks



commit cefe9c20bab85bdfd9f8b3c78f5ea95fb783bde1
Author: BenoÃt Dupasquier <bdupasqu src gnome org>
Date:   Thu Jan 12 22:27:59 2012 +0000

    Fixed memory leaks

 src/profiles/gnac-profiles.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/profiles/gnac-profiles.c b/src/profiles/gnac-profiles.c
index da68065..d519e03 100755
--- a/src/profiles/gnac-profiles.c
+++ b/src/profiles/gnac-profiles.c
@@ -154,8 +154,10 @@ gnac_profiles_populate_combo(void)
         profile->name, MAX_NAME_DISPLAY_SIZE);
     gchar *name = gnac_profiles_utils_get_combo_format_name(formatted_name,
         profile->extension);
+    g_free(formatted_name);
     gtk_list_store_append(model, &iter);
     gtk_list_store_set(model, &iter, COL_NAME, name, COL_PROFILE, profile, -1);
+    g_free(name);
   }
 
   g_list_free(profiles);



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