summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/browser_window.c4
1 files changed, 3 insertions, 1 deletions
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 */