From 50cab9981df630c519a818cd472f8ff195388184 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Sat, 18 Feb 2012 08:28:30 +0100 Subject: [PATCH] stop sounds on unloading menu after fade out --- menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu.c b/menu.c index 717afdb..9c46f40 100644 --- a/menu.c +++ b/menu.c @@ -127,8 +127,6 @@ void Menu_Preload(struct Game *game) { } void Menu_Unload(struct Game *game) { - al_destroy_sample(game->menu.sample); - al_destroy_sample(game->menu.rain_sample); game->menu.menu_fade_bitmap = al_create_bitmap(al_get_display_width(game->display), al_get_display_height(game->display)); @@ -156,6 +154,8 @@ void Menu_Unload(struct Game *game) { al_destroy_font(game->menu.font_subtitle); al_destroy_font(game->menu.font); al_destroy_font(game->menu.font_selected); + al_destroy_sample(game->menu.sample); + al_destroy_sample(game->menu.rain_sample); } void Menu_Load(struct Game *game) {