Browse Source

fixed memory leak

IverMartinson 4 months ago
parent
commit
696a42bc8d
2 changed files with 2 additions and 0 deletions
  1. BIN
      build/libsourparse.so
  2. 2 0
      src/library/sourparse.c

BIN
build/libsourparse.so


+ 2 - 0
src/library/sourparse.c

@@ -511,6 +511,8 @@ void SP_free_font(SP_font *font){
     
     free(font->glyphs);
     free(font->unicode_to_glyph_indicies);
+    free(font->left_side_bearings);
+    free(font->h_metrics);
 
     free(font);
 }