Browse Source

Merge pull request #659 from noshbar/text-memory-leak

Fixes memory leak in text.c
Ray 7 năm trước cách đây
mục cha
commit
a12cafe84d
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/text.c

+ 1 - 0
src/text.c

@@ -527,6 +527,7 @@ Image GenImageFontAtlas(CharInfo *chars, int charsCount, int fontSize, int paddi
             else TraceLog(LOG_WARNING, "Character could not be packed: %i", i);
         }
 
+        free(rects);
         free(nodes);
         free(context);
     }