raysan5 / raylib

A simple and easy-to-use library to enjoy videogames programming
http://www.raylib.com
zlib License
21.92k stars 2.22k forks source link

[model] missing RL_FREE #1446

Closed chriscamacho closed 3 years ago

chriscamacho commented 3 years ago

around line 3100 (near end of LoadOBJ) there is an RL_FREE missing (commented out??), also the material counts haven't been freed

//RL_FREE(fileData);

should be

RL_FREE(fileData);
RL_FREE(matFaces);

untriangulated meshes are still causing seg faults, no idea what's happening there...

chriscamacho commented 3 years ago

also notice diffuse colour doesn't seem to be working, works okay with my OBJ loader, so its not rlgl ... quite a puzzle!

raysan5 commented 3 years ago

I'll try to review LoadOBJ() more carefully when I have time...