From a0c8f4c4ced470436f070a73dcda738a04f1f0c2 Mon Sep 17 00:00:00 2001 From: Marwan Tanager Date: Sun, 30 Jun 2013 18:06:49 +0200 Subject: [PATCH] Fix a memory leak Signed-off-by: Sebastian Ramacher --- zathura.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zathura.c b/zathura.c index b465cb6..0165e40 100644 --- a/zathura.c +++ b/zathura.c @@ -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; } }