From b99357616cebe750e523f123701f284d7ac0037f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 17 Feb 2014 12:31:02 +0000 Subject: Fix unchecked return. Coverity #1175740. --- desktop/browser_history.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'desktop/browser_history.c') 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, -- cgit v1.2.3