diff options
| author | Ray <[email protected]> | 2022-10-03 00:07:22 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-10-03 00:07:22 +0200 |
| commit | 7459d906de4e6a605ac4eecf4401273aa2bc5aeb (patch) | |
| tree | 30878745bac0b75a6bff2959c80e42bd465ebfb4 | |
| parent | 33e7f7cc59df39021f2c289f44edc25843c8bb75 (diff) | |
| download | raylib-7459d906de4e6a605ac4eecf4401273aa2bc5aeb.tar.gz raylib-7459d906de4e6a605ac4eecf4401273aa2bc5aeb.zip | |
Update rtext.c
| -rw-r--r-- | src/rtext.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtext.c b/src/rtext.c index 324ebe95..62996be6 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -58,7 +58,7 @@ #if defined(SUPPORT_MODULE_RTEXT) -#include "utils.h" // Required for: LoadFileText() +#include "utils.h" // Required for: LoadFile*() #include "rlgl.h" // OpenGL abstraction layer to OpenGL 1.1, 2.1, 3.3+ or ES2 -> Only DrawTextPro() #include <stdlib.h> // Required for: malloc(), free() @@ -359,7 +359,7 @@ Font LoadFontEx(const char *fileName, int fontSize, int *fontChars, int glyphCou // Loading font from memory data font = LoadFontFromMemory(GetFileExtension(fileName), fileData, fileSize, fontSize, fontChars, glyphCount); - RL_FREE(fileData); + UnloadFileData(fileData); } else font = GetFontDefault(); |
