From 806f0e0518410a2fbdcfb8b742e6dca37bd727f3 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Mon, 27 Sep 2010 17:50:59 +0200 Subject: [PATCH] solution for #6? This could be a solution for #6 but needs some testing first. --- zathura.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zathura.c b/zathura.c index 0d4f7ce..c97b06a 100644 --- a/zathura.c +++ b/zathura.c @@ -2099,7 +2099,12 @@ sc_reload(Argument* argument) /* reopen and restore settings */ close_file(TRUE); - open_file(path, password); + if (open_file(path, password) == FALSE) + { + free(path); + free(password); + return; + } g_static_mutex_lock(&(Zathura.Lock.pdf_obj_lock)); Zathura.PDF.scale = scale;