Commit a16819fd authored by Benoît Knecht's avatar Benoît Knecht Committed by Sebastian Ramacher

Always free the GtkTreePath in sc_navigate_index

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent e929a5bd
......@@ -895,6 +895,7 @@ sc_navigate_index(girara_session_t* session, girara_argument_t* argument,
do {
gtk_tree_model_get_iter(model, &iter, path);
if (gtk_tree_model_iter_next(model, &iter)) {
gtk_tree_path_free(path);
path = gtk_tree_model_get_path(model, &iter);
break;
}
......@@ -918,7 +919,7 @@ sc_navigate_index(girara_session_t* session, girara_argument_t* argument,
break;
case SELECT:
cb_index_row_activated(tree_view, path, NULL, zathura);
gtk_tree_path_free(path);
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment