mirror of
https://github.com/lvgl/lvgl.git
synced 2025-02-04 07:13:00 +08:00
fix(draw_label): fix bug when font is not resolved may cause undefined behavior (#5122)
This commit is contained in:
parent
dca4b2dce9
commit
71228f0693
@ -423,7 +423,7 @@ static void draw_letter(lv_draw_unit_t * draw_unit, lv_draw_glyph_dsc_t * dsc,
|
|||||||
|
|
||||||
cb(draw_unit, dsc, NULL, NULL);
|
cb(draw_unit, dsc, NULL, NULL);
|
||||||
|
|
||||||
if(font->release_glyph) {
|
if(g.resolved_font && font->release_glyph) {
|
||||||
font->release_glyph(font, &g);
|
font->release_glyph(font, &g);
|
||||||
}
|
}
|
||||||
LV_PROFILER_END;
|
LV_PROFILER_END;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user