Free iterator before list

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2018-02-26 22:24:43 +01:00
parent 1ebf8f76f8
commit 90533f6773

View File

@ -513,14 +513,14 @@ zathura_free(zathura_t* zathura)
g_free(zathura->config.cache_dir);
/* free jumplist */
if (zathura->jumplist.list != NULL) {
girara_list_free(zathura->jumplist.list);
}
if (zathura->jumplist.cur != NULL) {
girara_list_iterator_free(zathura->jumplist.cur);
}
if (zathura->jumplist.list != NULL) {
girara_list_free(zathura->jumplist.list);
}
g_free(zathura);
}