Skip to content

Commit

Permalink
Per #2402, correct CgFontCollection::clear() to clear based on the nu…
Browse files Browse the repository at this point in the history
…mber of elements rather than the number of allocated elements after switching to using vectors.
  • Loading branch information
JohnHalleyGotway committed Feb 20, 2023
1 parent a7fb293 commit 3088da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/other/mode_graphics/cgraph_font.cc
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ void CgFontCollection::clear()

int j, error;

for (j=0; j<Nalloc; ++j) {
for (j=0; j<Nelements; ++j) {

error = FT_Done_Face(e[j].face);

Expand Down

0 comments on commit 3088da1

Please sign in to comment.