浏览代码

Update Example_-_2D_ShootBullets.c

Rudy Boudewijn van Etten 5 年之前
父节点
当前提交
47f9aeb2b0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Example_-_2D_ShootBullets.c

+ 2 - 0
Example_-_2D_ShootBullets.c

@@ -1,5 +1,6 @@
 
 #include "raylib.h"
+#include <stdlib.h>
 // math.h is needed for cos and sin.
 #include <math.h>
 
@@ -118,6 +119,7 @@ int main(void)
     }
 
     // De-Initialization
+    free(mybullets);              // Unload points data array
     UnloadRenderTexture(target);    // Unload render texture    
     //--------------------------------------------------------------------------------------
     CloseWindow();        // Close window and OpenGL context