browser_window: Check for bw==NULL before dereferencing it
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
ba4c20a0c7
commit
6848cc890a
|
@ -2599,14 +2599,14 @@ browser_window_redraw(struct browser_window *bw,
|
||||||
struct rect content_clip;
|
struct rect content_clip;
|
||||||
nserror res;
|
nserror res;
|
||||||
|
|
||||||
x /= bw->scale;
|
|
||||||
y /= bw->scale;
|
|
||||||
|
|
||||||
if (bw == NULL) {
|
if (bw == NULL) {
|
||||||
NSLOG(netsurf, INFO, "NULL browser window");
|
NSLOG(netsurf, INFO, "NULL browser window");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
x /= bw->scale;
|
||||||
|
y /= bw->scale;
|
||||||
|
|
||||||
if ((bw->current_content == NULL) &&
|
if ((bw->current_content == NULL) &&
|
||||||
(bw->children == NULL)) {
|
(bw->children == NULL)) {
|
||||||
/* Browser window has no content, render blank fill */
|
/* Browser window has no content, render blank fill */
|
||||||
|
|
Loading…
Reference in New Issue