Procházet zdrojové kódy

Fix memory leak in LoadGLTF() (#929)

Free texturePath in LoadGLTF()
pull/931/head
Michael Vetter před 5 roky
odevzdal Ray
rodič
revize
6267fd1865
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. +1
    -0
      src/models.c

+ 1
- 0
src/models.c Zobrazit soubor

@ -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)

Načítá se…
Zrušit
Uložit