Commit a0c8f4c4 authored by Marwan Tanager's avatar Marwan Tanager Committed by Sebastian Ramacher

Fix a memory leak

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 486698d9
......@@ -1267,9 +1267,9 @@ zathura_jumplist_trim(zathura_t* zathura)
--zathura->jumplist.size;
}
if (zathura->jumplist.size == 0) {
if (zathura->jumplist.size == 0 || (zathura->jumplist.size != 0 && zathura->jumplist.cur != NULL)) {
girara_list_iterator_free(cur);
} else if (zathura->jumplist.cur == NULL) {
} else {
zathura->jumplist.cur = cur;
}
}
......
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