Fix memory leak in models_animation example

This commit is contained in:
culacant 2019-08-06 11:21:44 +02:00
parent 75efec5827
commit c40c82a498

View File

@ -93,6 +93,7 @@ int main(void)
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
// Unload model animations data // Unload model animations data
for (int i = 0; i < animsCount; i++) UnloadModelAnimation(anims[i]); for (int i = 0; i < animsCount; i++) UnloadModelAnimation(anims[i]);
free(anims);
UnloadModel(model); // Unload model UnloadModel(model); // Unload model