Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/b99357616cebe750e523f...
...commit
http://git.netsurf-browser.org/netsurf.git/commit/b99357616cebe750e523f12...
...tree
http://git.netsurf-browser.org/netsurf.git/tree/b99357616cebe750e523f1237...
The branch, master has been updated
via b99357616cebe750e523f123701f284d7ac0037f (commit)
from 143f28572af65aaabd084cc7b46dbfc5ab766b06 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=b99357616cebe750e52...
commit b99357616cebe750e523f123701f284d7ac0037f
Author: Michael Drake <tlsa(a)netsurf-browser.org>
Commit: Michael Drake <tlsa(a)netsurf-browser.org>
Fix unchecked return. Coverity #1175740.
diff --git a/desktop/browser_history.c b/desktop/browser_history.c
index c52f01c..ca551f7 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,
-----------------------------------------------------------------------
Summary of changes:
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 c52f01c..ca551f7 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,
--
NetSurf Browser