mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
Bug 848954 - Part 19 - Delete the mixer callbacks on removal. r=roc
This commit is contained in:
parent
86c51354d2
commit
633b616eea
@ -44,7 +44,10 @@ public:
|
||||
|
||||
~AudioMixer()
|
||||
{
|
||||
mCallbacks.clear();
|
||||
MixerCallback* cb;
|
||||
while ((cb = mCallbacks.popFirst())) {
|
||||
delete cb;
|
||||
}
|
||||
}
|
||||
|
||||
void StartMixing()
|
||||
@ -108,6 +111,7 @@ public:
|
||||
cb != nullptr; cb = cb->getNext()) {
|
||||
if (cb->mReceiver == aReceiver) {
|
||||
cb->remove();
|
||||
delete cb;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user