diff options
| author | Ray <raysan5@gmail.com> | 2019-04-01 18:22:56 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2019-04-01 18:22:56 +0200 |
| commit | f1cbdd6b3af5dc51cef306cbbc4619c7b6ed548a (patch) | |
| tree | d54509bdda0022fab10ca20560efb76c314d50b0 /src/models.c | |
| parent | 86212e84628e589701c7934affd83685ff3e8ae9 (diff) | |
| download | raylib-f1cbdd6b3af5dc51cef306cbbc4619c7b6ed548a.tar.gz raylib-f1cbdd6b3af5dc51cef306cbbc4619c7b6ed548a.zip | |
Corrected some issues
- Support compiling for OpenGL 1.1
- Free meshes/materials memory after usage...
Diffstat (limited to 'src/models.c')
| -rw-r--r-- | src/models.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/models.c b/src/models.c index 9fb08d82..7c266843 100644 --- a/src/models.c +++ b/src/models.c @@ -682,6 +682,9 @@ void UnloadModel(Model model) { for (int i = 0; i < model.meshCount; i++) UnloadMesh(&model.meshes[i]); for (int i = 0; i < model.materialCount; i++) UnloadMaterial(model.materials[i]); + + free(model.meshes); + free(model.materials); free(model.meshMaterial); TraceLog(LOG_INFO, "Unloaded model data from RAM and VRAM"); |
