mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 12:46:00 +01:00
Always free the GtkTreePath in sc_navigate_index
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
e929a5bd5a
commit
a16819fdf0
1 changed files with 2 additions and 1 deletions
|
@ -895,6 +895,7 @@ sc_navigate_index(girara_session_t* session, girara_argument_t* argument,
|
||||||
do {
|
do {
|
||||||
gtk_tree_model_get_iter(model, &iter, path);
|
gtk_tree_model_get_iter(model, &iter, path);
|
||||||
if (gtk_tree_model_iter_next(model, &iter)) {
|
if (gtk_tree_model_iter_next(model, &iter)) {
|
||||||
|
gtk_tree_path_free(path);
|
||||||
path = gtk_tree_model_get_path(model, &iter);
|
path = gtk_tree_model_get_path(model, &iter);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -918,7 +919,7 @@ sc_navigate_index(girara_session_t* session, girara_argument_t* argument,
|
||||||
break;
|
break;
|
||||||
case SELECT:
|
case SELECT:
|
||||||
cb_index_row_activated(tree_view, path, NULL, zathura);
|
cb_index_row_activated(tree_view, path, NULL, zathura);
|
||||||
|
gtk_tree_path_free(path);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue