diff options
Diffstat (limited to 'desktop/browser_history.c')
-rw-r--r-- | desktop/browser_history.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/desktop/browser_history.c b/desktop/browser_history.c index c52f01c1a..ca551f75d 100644 --- a/desktop/browser_history.c +++ b/desktop/browser_history.c @@ -712,9 +712,13 @@ void browser_window_history_go(struct browser_window *bw, current = history->current; history->current = entry; - browser_window_create(BW_CREATE_CLONE, + error = browser_window_create(BW_CREATE_CLONE, url, NULL, bw, NULL); history->current = current; + if (error != NSERROR_OK) { + nsurl_unref(url); + return; + } } else { history->current = entry; browser_window_navigate(bw, url, NULL, |