瀏覽代碼

[Examples] Free Allocated Matrices. (#2425)

Anilforextra 3 年之前
父節點
當前提交
9c66e2f97e
共有 1 個文件被更改,包括 6 次插入0 次删除
  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
     // De-Initialization
     //--------------------------------------------------------------------------------------
     //--------------------------------------------------------------------------------------
+    // Free allocated matrices
+    RL_FREE(rotations);
+    RL_FREE(rotationsInc);
+    RL_FREE(translations);
+    RL_FREE(transforms);
+
     CloseWindow();        // Close window and OpenGL context
     CloseWindow();        // Close window and OpenGL context
     //--------------------------------------------------------------------------------------
     //--------------------------------------------------------------------------------------