Clean up OpenAL buffers when deallocating sound channels
This commit is contained in:
parent
e690633e72
commit
7a8c9268bd
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user