diff options
author | Federico Mena Quintero <federico@novell.com> | 2009-09-30 18:49:33 -0500 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-10-15 22:06:20 +0200 |
commit | f0e2d7d88b82bfc69fd810707bcb1fa069b29d91 (patch) | |
tree | e945be2d89e40bfea157ba2b2a1ebd87b04936ec /gtk/gtkfilesystemmodel.c | |
parent | 02d96465f4502b5f5ea8305ac06ac35d551954ee (diff) | |
download | gtk+-f0e2d7d88b82bfc69fd810707bcb1fa069b29d91.tar.gz |
Fix thinkos in which fields get used
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'gtk/gtkfilesystemmodel.c')
-rw-r--r-- | gtk/gtkfilesystemmodel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c index b3c8c196fa..095969bdc6 100644 --- a/gtk/gtkfilesystemmodel.c +++ b/gtk/gtkfilesystemmodel.c @@ -984,8 +984,8 @@ gtk_file_system_model_finalize (GObject *object) if (node->info) g_object_unref (node->info); - for (v = 0; v < model->column_types; v++) - if (G_VALUE_TYPE (node->values[v]) != G_TYPE_INVALID) + for (v = 0; v < model->n_columns; v++) + if (G_VALUE_TYPE (&node->values[v]) != G_TYPE_INVALID) g_value_unset (&node->values[v]); } g_array_free (model->files, TRUE); @@ -1000,7 +1000,7 @@ gtk_file_system_model_finalize (GObject *object) if (model->filter) g_object_unref (model->filter); - g_slice_free1 (sizeof (GType) * n_columns, model->column_types); + g_slice_free1 (sizeof (GType) * model->n_columns, model->column_types); _gtk_tree_data_list_header_free (model->sort_list); if (model->default_sort_destroy) |