Loading
bug 1191648 don't create audioprocess event when there is no listener r=padenot
Creating the event added a reference to the ScriptProcessorNode, which wasn't released until the AudioProcessingEvent was destroyed in nsCycleCollector::FreeSnowWhite(). If another event is dispatched before cycle collection considers the ScriptProcessorNode, then the node will not be collected. Also, the reference count of the ScriptProcessorNode is no longer toggled because this seemed to interfere with the cycle collection process. --HG-- extra : rebase_source : 41878e716fe3fcc8f46f518be2a50d050b8ed14c