From 0e56d0124fbd51092c5c72501fa5f9f03cdfd168 Mon Sep 17 00:00:00 2001 From: Amir Gonnen Date: Tue, 6 Jun 2023 10:11:13 +0300 Subject: [PATCH] fix(gc): initialize GC if needed (#4269) --- src/core/lv_obj.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/lv_obj.c b/src/core/lv_obj.c index ed482bc7a..bcfdf2531 100644 --- a/src/core/lv_obj.c +++ b/src/core/lv_obj.c @@ -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();