summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorLeonardo Montagner <[email protected]>2022-04-26 12:25:39 +0200
committerGitHub <[email protected]>2022-04-26 12:25:39 +0200
commit358026747959a1c05372f0ebfbcdc45dd0a5a560 (patch)
tree21892770e1b9c4b59651eea9310c3fb980671371 /src
parenta7ce537d3217ab7e1379d0a765942039d0c333d8 (diff)
downloadraylib-358026747959a1c05372f0ebfbcdc45dd0a5a560.tar.gz
raylib-358026747959a1c05372f0ebfbcdc45dd0a5a560.zip
Fix Issue #2441 (#2442)
Remove line that caused a memory leak
Diffstat (limited to 'src')
-rw-r--r--src/rmodels.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rmodels.c b/src/rmodels.c
index 9f5cfd39..d02b0473 100644
--- a/src/rmodels.c
+++ b/src/rmodels.c
@@ -4643,7 +4643,6 @@ static Model LoadGLTF(const char *fileName)
// Load our model data: meshes and materials
model.meshCount = primitivesCount;
model.meshes = RL_CALLOC(model.meshCount, sizeof(Mesh));
- for (int i = 0; i < model.meshCount; i++) model.meshes[i].vboId = (unsigned int*)RL_CALLOC(MAX_MESH_VERTEX_BUFFERS, sizeof(unsigned int));
// NOTE: We keep an extra slot for default material, in case some mesh requires it
model.materialCount = (int)data->materials_count + 1;