Stop sound source before unloading

This commit is contained in:
Ray San 2017-01-18 17:25:25 +01:00
parent 46f95a730a
commit fc7d4cef18

View File

@ -353,6 +353,8 @@ void UnloadWave(Wave wave)
// Unload sound
void UnloadSound(Sound sound)
{
alSourceStop(sound.source);
alDeleteSources(1, &sound.source);
alDeleteBuffers(1, &sound.buffer);