Bug 848954 - Part 19 - Delete the mixer callbacks on removal. r=roc

This commit is contained in:
Paul Adenot 2014-08-26 17:02:09 +02:00
parent 86c51354d2
commit 633b616eea

View File

@ -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;
}
}