From f5e95029b1d85761040c0073027cb0516e14ab18 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 4 Aug 2025 20:44:22 +0200 Subject: [PATCH] Update rexm.c --- examples/rexm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/rexm.c b/examples/rexm.c index 3ed90f20c..89c794a8a 100644 --- a/examples/rexm.c +++ b/examples/rexm.c @@ -1025,7 +1025,7 @@ static rlExampleInfo *LoadExamplesData(const char *fileName, const char *categor if (text != NULL) { int lineCount = 0; - const char **lines = LoadTextLines(text, &lineCount); + char **lines = LoadTextLines(text, &lineCount); for (int i = 0; i < lineCount; i++) { @@ -1058,6 +1058,7 @@ static rlExampleInfo *LoadExamplesData(const char *fileName, const char *categor } } + UnloadTextLines(lines); UnloadFileText(text); }