diff options
author | Paolo Borelli <pborelli@katamail.com> | 2009-02-23 16:42:37 +0000 |
---|---|---|
committer | Paolo Borelli <pborelli@src.gnome.org> | 2009-02-23 16:42:37 +0000 |
commit | 20b787c9a50485dc0f6be8fde75ae6d089101a72 (patch) | |
tree | bf315231a82d539d920bcd2f9451d1c94149d928 /src | |
parent | a7bdb32e4fcff1d66a0656193f6ac8d78fe245b4 (diff) | |
download | nautilus-20b787c9a50485dc0f6be8fde75ae6d089101a72.tar.gz |
do not leak the columns list.
2009-02-23 Paolo Borelli <pborelli@katamail.com>
* src/file-manager/fm-list-view.c (sort_criterion_changes_due_to_user):
do not leak the columns list.
svn path=/trunk/; revision=14998
Diffstat (limited to 'src')
-rw-r--r-- | src/file-manager/fm-list-view.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c index 16cb49823..236788317 100644 --- a/src/file-manager/fm-list-view.c +++ b/src/file-manager/fm-list-view.c @@ -1007,19 +1007,24 @@ sort_criterion_changes_due_to_user (GtkTreeView *tree_view) GtkTreeViewColumn *column; GSignalInvocationHint *ihint; unsigned int sort_signal_id; + gboolean ret; sort_signal_id = g_signal_lookup ("clicked", gtk_tree_view_column_get_type ()); + ret = FALSE; + columns = gtk_tree_view_get_columns (tree_view); for (p = columns; p != NULL; p = p->next) { column = p->data; ihint = g_signal_get_invocation_hint (column); if (ihint != NULL) { - return TRUE; + ret = TRUE; + break; } } + g_list_free (columns); - return FALSE; + return ret; } static void |