[nautilus] column-chooser: fix mem leak



commit 1697f75195abd9df78d99dbcafb6e1cf5b8fb37f
Author: Pavel Vasin <rat4vier gmail com>
Date:   Tue Jan 1 20:36:10 2013 +0400

    column-chooser: fix mem leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691004

 libnautilus-private/nautilus-column-chooser.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-column-chooser.c b/libnautilus-private/nautilus-column-chooser.c
index dfe9ba0..49f85b6 100644
--- a/libnautilus-private/nautilus-column-chooser.c
+++ b/libnautilus-private/nautilus-column-chooser.c
@@ -536,6 +536,8 @@ get_column_names (NautilusColumnChooser *chooser, gboolean only_visible)
 			if (!only_visible || visible) {
 				/* give ownership to the array */
 				g_ptr_array_add (ret, name);
+			} else {
+				g_free (name);
 			}
 
 		} while (gtk_tree_model_iter_next (GTK_TREE_MODEL (chooser->details->store), &iter));



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