Skip to content

Commit

Permalink
Dispose sound sources
Browse files Browse the repository at this point in the history
  • Loading branch information
PunkPun committed Apr 24, 2024
1 parent 10d7436 commit df9d8d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenRA.Platforms.Default/OpenAlSoundEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,8 @@ void Dispose(bool disposing)
if (disposing)
StopAllSounds();

AL10.alDeleteSources(PoolSize, sourcePool.Keys.ToArray());

if (context != IntPtr.Zero)
{
ALC10.alcMakeContextCurrent(IntPtr.Zero);
Expand Down

0 comments on commit df9d8d9

Please sign in to comment.