From 9014dc738114d23d9b1c819e9a832b4a3e5571d5 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 22 Mar 2020 13:35:38 +0000 Subject: browser_window: Don't attempt to unref NULL lwc string Fixes #2741 Signed-off-by: Daniel Silverstone --- desktop/browser_window.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop/browser_window.c b/desktop/browser_window.c index 3ae585e61..03943f163 100644 --- a/desktop/browser_window.c +++ b/desktop/browser_window.c @@ -3732,7 +3732,9 @@ browser_window__navigate_internal(struct browser_window *bw, lwc_string_unref(path); return navigate_internal_query_fetcherror(bw, params); } - lwc_string_unref(path); + if (path != NULL) { + lwc_string_unref(path); + } /* Fall through to a normal about: fetch */ -- cgit v1.2.3