[Fix] Wasn't freeing sound properly.

This commit is contained in:
Allanis 2013-08-24 11:55:51 +01:00
parent e3ddc663bf
commit 6087d22a5d
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@
<main>3</main>
</tech>
<services>31</services>
<class>A</class>
<class>M</class>
</general>
</planet>
<planet name="New Haven">

View File

@ -78,10 +78,10 @@ void sound_exit(void) {
int i;
/* Free the sounds. */
sound_free(&sound_list[i]);
for(i = 0; i < sound_nlist; i++)
sound_free(&sound_list[i]);
free(sound_list);
sound_list = NULL;
sound_nlist = 0;
music_exit();