ソースを参照

Fix memory leak in LoadGLTF() (#929)

Free texturePath in LoadGLTF()
pull/931/head
Michael Vetter 5年前
committed by Ray
コミット
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); ImageColorTint(&image, tint);
texture = LoadTextureFromImage(image); texture = LoadTextureFromImage(image);
UnloadImage(image); UnloadImage(image);
RL_FREE(texturePath);
} }
} }
else if (img->buffer_view) else if (img->buffer_view)

読み込み中…
キャンセル
保存