Skip to content

Commit

Permalink
Update rtext.c
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Oct 2, 2022
1 parent 33e7f7c commit 7459d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rtext.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 7459d90

Please sign in to comment.