gterm: Fix NULL dereference bug when no wallpaper used

This commit is contained in:
mintsuki 2023-03-05 09:49:28 +01:00
parent 77cd8b085a
commit edd4454b00

View File

@ -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;