diff options
| author | Michael Vetter <jubalh@iodoru.org> | 2019-08-06 23:09:27 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2019-08-06 23:09:27 +0200 |
| commit | 6267fd1865a1354cf059567bdbcf56d802e5403b (patch) | |
| tree | 57467378e76981eafcb2cc99276ebaf1e0a7bcab /src | |
| parent | f518c4e939a824a4174d1ce4ec0ddb53125cfab0 (diff) | |
| download | raylib-6267fd1865a1354cf059567bdbcf56d802e5403b.tar.gz raylib-6267fd1865a1354cf059567bdbcf56d802e5403b.zip | |
Fix memory leak in LoadGLTF() (#929)
Free texturePath in LoadGLTF()
Diffstat (limited to 'src')
| -rw-r--r-- | src/models.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models.c b/src/models.c index f848e0ab..8b5fb472 100644 --- a/src/models.c +++ b/src/models.c @@ -3457,6 +3457,7 @@ static Model LoadGLTF(const char *fileName) ImageColorTint(&image, tint); texture = LoadTextureFromImage(image); UnloadImage(image); + RL_FREE(texturePath); } } else if (img->buffer_view) |
