Fix unchecked return. Coverity #1175740.

This commit is contained in:
Michael Drake 2014-02-17 12:31:02 +00:00
parent 143f28572a
commit b99357616c

View File

@ -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,