mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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:
parent
c2f6611e4b
commit
855fee8f1f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user