mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 17:22:44 +03:00
Avoid dereffing bw when bw's page is removed from bookmarks.
This commit is contained in:
parent
fdf5fb42d1
commit
7cb2f1c41e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user