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

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);
}
if (path != NULL) {
lwc_string_unref(path);
}
/* Fall through to a normal about: fetch */