[gtk+] Fix thinkos in which fields get used



commit f0e2d7d88b82bfc69fd810707bcb1fa069b29d91
Author: Federico Mena Quintero <federico novell com>
Date:   Wed Sep 30 18:49:33 2009 -0500

    Fix thinkos in which fields get used
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 gtk/gtkfilesystemmodel.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkfilesystemmodel.c b/gtk/gtkfilesystemmodel.c
index b3c8c19..095969b 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)



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