Clean up OpenAL buffers when deallocating sound channels

This commit is contained in:
cim 2013-11-08 16:50:06 +00:00
parent e690633e72
commit 7a8c9268bd

View File

@ -59,8 +59,9 @@ SOFTWARE.
- (void) dealloc - (void) dealloc
{ {
[super dealloc]; [self hasStopped]; // make sure buffers are dequeued and deleted
OOAL(alDeleteSources(1, &_source)); OOAL(alDeleteSources(1, &_source));
[super dealloc];
} }
- (void) update - (void) update