浏览代码

Update rexm.c

Ray 1 月之前
父节点
当前提交
f5e95029b1
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      examples/rexm.c

+ 2 - 1
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);
     }