Fix memleak in filter model unit test

(There is one larger memleak left here, but this is a side effect of the
test case for bug 346800).
This commit is contained in:
Kristian Rietveld 2009-09-05 16:58:12 +02:00
parent c2f6611e4b
commit 855fee8f1f

View File

@ -43,13 +43,18 @@ create_tree_store_set_values (GtkTreeStore *store,
gboolean visible)
{
GtkTreePath *path;
gchar *path_string;
path = gtk_tree_model_get_path (GTK_TREE_MODEL (store), iter);
path_string = gtk_tree_path_to_string (path);
gtk_tree_store_set (store, iter,
0, gtk_tree_path_to_string (path),
0, path_string,
1, visible,
-1);
gtk_tree_path_free (path);
g_free (path_string);
}
static void