Просмотр исходного кода

Fix memory leak in LoadGLTF() (#929)

Free texturePath in LoadGLTF()
pull/931/head
Michael Vetter 6 лет назад
committed by Ray
Родитель
Сommit
6267fd1865
1 измененных файлов: 1 добавлений и 0 удалений
  1. +1
    -0
      src/models.c

+ 1
- 0
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)

Загрузка…
Отмена
Сохранить