gterm: Fix NULL dereference bug when no wallpaper used
This commit is contained in:
parent
77cd8b085a
commit
edd4454b00
|
@ -804,8 +804,10 @@ no_load_font:;
|
|||
|
||||
pmm_free(font, FONT_MAX);
|
||||
|
||||
image_close(background);
|
||||
background = NULL;
|
||||
if (background != NULL) {
|
||||
image_close(background);
|
||||
background = NULL;
|
||||
}
|
||||
|
||||
if (terms_i == 0) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue