diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-10-18 17:45:58 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-10-18 17:45:58 +0100 |
commit | 7cb2f1c41e3ecd1da6ea23746ab802e719067f8c (patch) | |
tree | 6ffda89ace2d9755605d957d47e2bffda8898ab5 /riscos | |
parent | fdf5fb42d1eb2834b1cd7fdf3224f38f2365b9e4 (diff) | |
download | netsurf-7cb2f1c41e3ecd1da6ea23746ab802e719067f8c.tar.gz netsurf-7cb2f1c41e3ecd1da6ea23746ab802e719067f8c.tar.bz2 |
Avoid dereffing bw when bw's page is removed from bookmarks.
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/window.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/riscos/window.c b/riscos/window.c index c3a437d27..9ae75ac90 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -4086,11 +4086,10 @@ static void ro_gui_window_action_remove_bookmark(struct gui_window *g) nsurl *url; if (g == NULL || g->bw == NULL || g->toolbar == NULL || - g->bw->current_content == NULL || - hlcache_handle_get_url(g->bw->current_content) == NULL) + browser_window_has_content(g->bw) == false) return; - url = hlcache_handle_get_url(g->bw->current_content); + url = browser_window_get_url(g->bw); ro_gui_hotlist_remove_page(url); } |