free the tree too

This commit is contained in:
Daniel Micay 2012-06-06 20:54:33 -04:00
parent 7b36f70f6f
commit 564b21c2dc
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@ static GtkTreeModel *create_completion_model(VteTerminal *vte) {
}
g_tree_foreach(tree, (GTraverseFunc)add_to_list_store, store);
g_tree_destroy(tree);
g_free(content);
return GTK_TREE_MODEL(store);
}