Browse Source

[Examples] Free Allocated Matrices. (#2425)

Anilforextra 3 years ago
parent
commit
9c66e2f97e
1 changed files with 6 additions and 0 deletions
  1. 6 0
      examples/shaders/shaders_mesh_instancing.c

+ 6 - 0
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
     //--------------------------------------------------------------------------------------