mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 11:26:01 +01:00
Fix a memory leak
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
486698d9fb
commit
a0c8f4c4ce
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue