From 9c66e2f97ed02338b6a79b12ca638b3a49f5e41d Mon Sep 17 00:00:00 2001 From: Anilforextra Date: Mon, 4 Apr 2022 14:17:46 +0545 Subject: [PATCH] [Examples] Free Allocated Matrices. (#2425) --- examples/shaders/shaders_mesh_instancing.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/shaders/shaders_mesh_instancing.c b/examples/shaders/shaders_mesh_instancing.c index 339b93794..8be576720 100644 --- a/examples/shaders/shaders_mesh_instancing.c +++ b/examples/shaders/shaders_mesh_instancing.c @@ -217,6 +217,12 @@ int main(void) // De-Initialization //-------------------------------------------------------------------------------------- + // Free allocated matrices + RL_FREE(rotations); + RL_FREE(rotationsInc); + RL_FREE(translations); + RL_FREE(transforms); + CloseWindow(); // Close window and OpenGL context //--------------------------------------------------------------------------------------