Ver código fonte
Update rmodels.c; free fileData for LoadModelAnimationsGLTF (#3065)
fileData wasn't freed for LoadModelAnimationsGLTF causing a memory leak. Added UnloadFileData line, freeing it.
pull/3067/head
Crynux
2 anos atrás
committed by
GitHub
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados
ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com
1 adições e
1 exclusões
-
src/rmodels.c
|
|
|
@ -5434,7 +5434,7 @@ static ModelAnimation *LoadModelAnimationsGLTF(const char *fileName, unsigned in |
|
|
|
|
|
|
|
cgltf_free(data); |
|
|
|
} |
|
|
|
|
|
|
|
UnloadFileData(fileData); |
|
|
|
return animations; |
|
|
|
} |
|
|
|
#endif |
|
|
|
|