mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 12:12:35 +03:00
Console: Do not try and log through a closed down window
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
a4bda322a9
commit
2d58372ec2
@ -51,7 +51,7 @@ write_log_entry(duk_context *ctx, unsigned int group, browser_window_console_fla
|
||||
duk_size_t msglen;
|
||||
const char *msg = duk_safe_to_lstring(ctx, 0, &msglen);
|
||||
|
||||
if (priv_win == NULL || priv_win->win == NULL ||
|
||||
if (priv_win == NULL || priv_win->win == NULL || priv_win->closed_down == true ||
|
||||
browser_window_console_log(priv_win->win, BW_CS_SCRIPT_CONSOLE,
|
||||
msg, msglen,
|
||||
flags) != NSERROR_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user