Преглед изворни кода

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);
texture = LoadTextureFromImage(image);
UnloadImage(image);
RL_FREE(texturePath);
}
}
else if (img->buffer_view)

||||||
x
 
000:0
Loading…
Откажи
Сачувај