Browse Source

Update Example_-_2D_ShootBullets.c

Rudy Boudewijn van Etten 5 years ago
parent
commit
47f9aeb2b0
1 changed files with 2 additions and 0 deletions
  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