fix(sdl): use stdlib malloc/free for framebuffer allocation

This commit is contained in:
Gabor Kiss-Vamosi
2023-11-30 13:36:55 +01:00
parent ddd61d9476
commit e06285e7a5
2 changed files with 4 additions and 2 deletions

View File

@@ -375,8 +375,8 @@ static void release_disp_cb(lv_event_t * e)
SDL_DestroyTexture(dsc->texture);
SDL_DestroyRenderer(dsc->renderer);
SDL_DestroyWindow(dsc->window);
if(dsc->fb1) lv_free(dsc->fb1);
if(dsc->fb2) lv_free(dsc->fb2);
if(dsc->fb1) free(dsc->fb1);
if(dsc->fb2) free(dsc->fb2);
lv_free(dsc);
lv_display_set_driver_data(disp, NULL);
}

View File

@@ -300,6 +300,8 @@ void lv_deinit(void)
return;
}
if(lv_deinit_in_progress) return;
lv_deinit_in_progress = true;
#if LV_USE_SYSMON