mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 17:22:44 +03:00
Avoid dereffing bw for content check in page info handler.
This commit is contained in:
parent
7cb2f1c41e
commit
62395c1186
@ -4119,7 +4119,8 @@ void ro_gui_window_action_print(struct gui_window *g)
|
||||
|
||||
void ro_gui_window_action_page_info(struct gui_window *g)
|
||||
{
|
||||
if (g == NULL || g->bw == NULL || g->bw->current_content == NULL)
|
||||
if (g == NULL || g->bw == NULL ||
|
||||
browser_window_has_content(g->bw) == false)
|
||||
return;
|
||||
|
||||
ro_gui_window_prepare_pageinfo(g);
|
||||
|
Loading…
Reference in New Issue
Block a user