Bug 873335 - Unlink ScriptProcessorNode members before AudioNode; r=mccr8
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 21 May 2013 14:54:23 -0400
changeset 132572 0cec5ad76246d43f3935275798722ac4dc50147a
parent 132571 808d77db43f14ab72388ebddfb1a43605354364e
child 132573 7cb2f5c6ef8ecb0c9bb1a68a2e849962be7031ec
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersmccr8
bugs873335
milestone24.0a1
Bug 873335 - Unlink ScriptProcessorNode members before AudioNode; r=mccr8
content/media/webaudio/ScriptProcessorNode.cpp
--- a/content/media/webaudio/ScriptProcessorNode.cpp
+++ b/content/media/webaudio/ScriptProcessorNode.cpp
@@ -14,21 +14,21 @@
 #include "WebAudioUtils.h"
 #include "mozilla/Mutex.h"
 #include "mozilla/PodOperations.h"
 #include <deque>
 
 namespace mozilla {
 namespace dom {
 
-NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(ScriptProcessorNode, AudioNode)
+NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(ScriptProcessorNode)
   if (tmp->Context()) {
     tmp->Context()->UnregisterScriptProcessorNode(tmp);
   }
-NS_IMPL_CYCLE_COLLECTION_UNLINK_END
+NS_IMPL_CYCLE_COLLECTION_UNLINK_END_INHERITED(AudioNode)
 
 NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(ScriptProcessorNode, AudioNode)
 NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
 
 NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION_INHERITED(ScriptProcessorNode)
 NS_INTERFACE_MAP_END_INHERITING(AudioNode)
 
 NS_IMPL_ADDREF_INHERITED(ScriptProcessorNode, AudioNode)