fix(test_span): remove the reference before deleting the font (#8753)

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Signed-off-by: zhouxingjian <zhouxingjian@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
caibutshuai
2025-09-02 02:37:39 +08:00
committed by GitHub
parent d3d26d9b1c
commit b0390bb1f5
+2
View File
@@ -581,6 +581,8 @@ void test_spangroup_set_line_space(void)
lv_span_set_text(span, test_text);
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/span_14.png");
lv_obj_set_style_text_font(spangroup, LV_FONT_DEFAULT, 0);
lv_freetype_font_delete(font);
}