Skip to content

Commit

Permalink
fix(display): rect_array is not freed
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Mar 30, 2020
1 parent e69804c commit 224c433
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ static size_t LCUIDisplay_RenderSurface(SurfaceRecord record)
rect_array[i]);
}
}
free(rect_array);
RectList_Clear(&rects);
record->rendered = count > 0;
count += LCUIDisplay_UpdateFlashRects(record);
Expand Down

0 comments on commit 224c433

Please sign in to comment.