mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add missing gtk_tree_path_free to gnucash-item-list.c
This commit is contained in:
parent
1554ec6c0f
commit
f93da32dfc
@ -224,7 +224,6 @@ gnc_item_list_show_selected (GncItemList* item_list)
|
||||
{
|
||||
GtkTreeSelection* selection;
|
||||
GtkTreeIter iter;
|
||||
GtkTreePath* path;
|
||||
GtkTreeModel* model;
|
||||
|
||||
g_return_if_fail (item_list != NULL);
|
||||
@ -234,10 +233,11 @@ gnc_item_list_show_selected (GncItemList* item_list)
|
||||
|
||||
if (gtk_tree_selection_get_selected (selection, &model, &iter))
|
||||
{
|
||||
path = gtk_tree_model_get_path (model, &iter);
|
||||
GtkTreePath* path = gtk_tree_model_get_path (model, &iter);
|
||||
|
||||
gtk_tree_view_scroll_to_cell (item_list->tree_view,
|
||||
path, NULL, TRUE, 0.5, 0.0);
|
||||
gtk_tree_path_free (path);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user