[Fix] Wasn't freeing sound properly.
This commit is contained in:
parent
e3ddc663bf
commit
6087d22a5d
@ -23,7 +23,7 @@
|
|||||||
<main>3</main>
|
<main>3</main>
|
||||||
</tech>
|
</tech>
|
||||||
<services>31</services>
|
<services>31</services>
|
||||||
<class>A</class>
|
<class>M</class>
|
||||||
</general>
|
</general>
|
||||||
</planet>
|
</planet>
|
||||||
<planet name="New Haven">
|
<planet name="New Haven">
|
||||||
|
@ -78,10 +78,10 @@ void sound_exit(void) {
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* Free the sounds. */
|
/* Free the sounds. */
|
||||||
sound_free(&sound_list[i]);
|
for(i = 0; i < sound_nlist; i++)
|
||||||
|
sound_free(&sound_list[i]);
|
||||||
free(sound_list);
|
free(sound_list);
|
||||||
sound_list = NULL;
|
sound_list = NULL;
|
||||||
|
|
||||||
sound_nlist = 0;
|
sound_nlist = 0;
|
||||||
|
|
||||||
music_exit();
|
music_exit();
|
||||||
|
Loading…
Reference in New Issue
Block a user