1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(gc): initialize GC if needed (#4269)

This commit is contained in:
Amir Gonnen 2023-06-06 10:11:13 +03:00 committed by GitHub
parent 06b3b62475
commit 0e56d0124f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,6 +120,11 @@ void lv_init(void)
LV_LOG_INFO("begin");
/*First initialize Garbage Collection if needed*/
#ifdef LV_GC_INIT
LV_GC_INIT();
#endif
/*Initialize the misc modules*/
#if LV_USE_BUILTIN_MALLOC
lv_mem_init_builtin();