Skip to content

Commit

Permalink
Fixed an issue when freeing the memory of fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
tanis2000 committed Jan 9, 2024
1 parent 69656a7 commit 35c5f8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/binocle/core/binocle_ttfont_wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ int l_binocle_ttfont_get_string_width(lua_State *L) {
int l_binocle_ttfont_destroy(lua_State *L) {
l_binocle_ttfont_t *ttfont = luaL_checkudata(L, 1, "binocle_ttfont");
binocle_ttfont_destroy(ttfont->ttfont);
ttfont->ttfont = NULL;
return 0;
}

Expand Down

0 comments on commit 35c5f8c

Please sign in to comment.