summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/bullet.c3
-rw-r--r--src/wall.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/bullet.c b/src/bullet.c
index 4da1429..64b4a9c 100644
--- a/src/bullet.c
+++ b/src/bullet.c
@@ -24,6 +24,9 @@ deinit_bullets(void)
{
rodeo_texture_2d_destroy(&bullet_texture);
rodeo_audio_sound_destroy(pop_sound);
+ rodeo_collision_2d_world_destroy(&player_bullet_collision_world);
+ rodeo_collision_2d_world_destroy(&enemy_bullet_collision_world);
+ cvec_bullet_t_drop(&bullets);
}
bullet_t *
diff --git a/src/wall.c b/src/wall.c
index 26849ba..91d2e65 100644
--- a/src/wall.c
+++ b/src/wall.c
@@ -47,6 +47,10 @@ void
deinit_wall(void)
{
rodeo_collision_2d_world_destroy(&collision_wall_world);
+ rodeo_texture_2d_destroy(&wall_texture);
+ rodeo_texture_2d_destroy(&floor_texture);
+ rodeo_texture_2d_destroy(&goat_texture);
+ rodeo_texture_2d_destroy(&logo_texture);
}
rodeo_collision_2d_world_t *