fix(leak): fix common memory leak on lv_init (#4750)
Signed-off-by: XiaoweiYan <yanxiaowei@xiaomi.com> Co-authored-by: XiaoweiYan <yanxiaowei@xiaomi.com>
This commit is contained in:
@@ -302,15 +302,54 @@ void lv_deinit(void)
|
||||
lv_theme_mono_deinit();
|
||||
#endif
|
||||
|
||||
_lv_cache_builtin_deinit();
|
||||
|
||||
_lv_cache_deinit();
|
||||
|
||||
_lv_image_decoder_deinit();
|
||||
|
||||
_lv_refr_deinit();
|
||||
|
||||
_lv_obj_style_deinit();
|
||||
|
||||
#if LV_USE_DRAW_PXP
|
||||
lv_draw_pxp_deinit();
|
||||
#endif
|
||||
|
||||
#if LV_USE_DRAW_VGLITE
|
||||
lv_draw_vglite_deinit();
|
||||
#endif
|
||||
|
||||
#if LV_USE_DRAW_SW
|
||||
lv_draw_sw_deinit();
|
||||
#endif
|
||||
|
||||
lv_draw_deinit();
|
||||
|
||||
_lv_group_deinit();
|
||||
|
||||
_lv_anim_core_deinit();
|
||||
|
||||
_lv_layout_deinit();
|
||||
|
||||
_lv_fs_deinit();
|
||||
|
||||
_lv_timer_core_deinit();
|
||||
|
||||
#if LV_USE_PROFILER && LV_USE_PROFILER_BUILTIN
|
||||
lv_profiler_builtin_uninit();
|
||||
#endif
|
||||
|
||||
#if LV_USE_OBJ_ID_BUILTIN
|
||||
lv_objid_builtin_destroy();
|
||||
#endif
|
||||
|
||||
lv_mem_deinit();
|
||||
|
||||
#if LV_USE_LOG
|
||||
lv_log_register_print_cb(NULL);
|
||||
#endif
|
||||
|
||||
#if LV_USE_OBJ_ID_BUILTIN
|
||||
lv_objid_builtin_destroy();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
lv_initialized = false;
|
||||
|
||||
Reference in New Issue
Block a user