Commit 90533f67 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Free iterator before list

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 1ebf8f76
...@@ -513,14 +513,14 @@ zathura_free(zathura_t* zathura) ...@@ -513,14 +513,14 @@ zathura_free(zathura_t* zathura)
g_free(zathura->config.cache_dir); g_free(zathura->config.cache_dir);
/* free jumplist */ /* free jumplist */
if (zathura->jumplist.list != NULL) {
girara_list_free(zathura->jumplist.list);
}
if (zathura->jumplist.cur != NULL) { if (zathura->jumplist.cur != NULL) {
girara_list_iterator_free(zathura->jumplist.cur); girara_list_iterator_free(zathura->jumplist.cur);
} }
if (zathura->jumplist.list != NULL) {
girara_list_free(zathura->jumplist.list);
}
g_free(zathura); g_free(zathura);
} }
......
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