Skip to content

Commit

Permalink
fix(draw_sw_arc): add ASSERT_MALLOC check (lvgl#7448)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfvogel authored Dec 12, 2024
1 parent 915f9b8 commit c022f08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/draw/sw/lv_draw_sw_arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ void lv_draw_sw_arc(lv_draw_unit_t * draw_unit, const lv_draw_arc_dsc_t * dsc, c
lv_area_t round_area_2;
if(dsc->rounded) {
circle_mask = lv_malloc(width * width);
LV_ASSERT_MALLOC(circle_mask);
lv_memset(circle_mask, 0xff, width * width);
lv_area_t circle_area = {0, 0, width - 1, width - 1};
lv_draw_sw_mask_radius_param_t circle_mask_param;
Expand Down

0 comments on commit c022f08

Please sign in to comment.