fix(vg_lite): fix stroke path memory leak (#5883)

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
VIFEXT
2024-03-15 20:53:35 +08:00
committed by GitHub
parent e5ab690166
commit 6159bad538
2 changed files with 4 additions and 7 deletions

View File

@@ -104,9 +104,8 @@ void lv_vg_lite_path_destroy(lv_vg_lite_path_t * path)
lv_free(path->base.path);
path->base.path = NULL;
if(path->base.stroke) {
LV_LOG_ERROR("can't free stroke path");
}
/* clear remaining path data */
LV_VG_LITE_CHECK_ERROR(vg_lite_clear_path(&path->base));
}
lv_free(path);
LV_PROFILER_END;