browser_window: Don't attempt to unref NULL lwc string

Fixes #2741

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2020-03-22 13:35:38 +00:00
parent d3a80a9aae
commit 9014dc7381
No known key found for this signature in database
GPG Key ID: C30DF439F2987D74
1 changed files with 3 additions and 1 deletions

View File

@ -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 */