summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2020-03-22 13:35:38 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2020-03-22 13:35:45 +0000
commit9014dc738114d23d9b1c819e9a832b4a3e5571d5 (patch)
tree9a37ff209e24595eb317c342c9bd1b29451bbd2d /desktop
parentd3a80a9aae980bf7ce532a59fdab0df25419b59b (diff)
downloadnetsurf-9014dc738114d23d9b1c819e9a832b4a3e5571d5.tar.gz
netsurf-9014dc738114d23d9b1c819e9a832b4a3e5571d5.tar.bz2
browser_window: Don't attempt to unref NULL lwc string
Fixes #2741 Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'desktop')
-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 */