diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/models.c | 3 | ||||
| -rw-r--r-- | src/rlgl.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/models.c b/src/models.c index 3e0cce44..90f3290a 100644 --- a/src/models.c +++ b/src/models.c @@ -2921,7 +2921,8 @@ static Model LoadOBJ(const char *fileName) tinyobj_attrib_free(&attrib); tinyobj_shapes_free(meshes, meshCount); tinyobj_materials_free(materials, materialCount); - RL_FREE(data); // oh ray how did you miss this...! :-p + + RL_FREE(data); } // NOTE: At this point we have all model data loaded @@ -2967,8 +2967,8 @@ char *LoadText(const char *fileName) Shader LoadShader(const char *vsFileName, const char *fsFileName) { Shader shader = { 0 }; - // double allocation causing leak (allocation done in LoadShaderCode) - //shader.locs = (int *)RL_CALLOC(MAX_SHADER_LOCATIONS, sizeof(int)); + + // NOTE: Shader.locs is allocated by LoadShaderCode() char *vShaderStr = NULL; char *fShaderStr = NULL; |
