This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
raylib-src
mirror of
https://github.com/raysan5/raylib
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
24
Wiki
Activity
Browse Source
Fix memory leak in LoadGLTF() (
#929
)
Free texturePath in LoadGLTF()
pull/931/head
Michael Vetter
5 years ago
committed by
Ray
parent
f518c4e939
commit
6267fd1865
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
src/models.c
+ 1
- 0
src/models.c
View File
@ -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
)
Write
Preview
Loading…
Cancel
Save