Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1681)

Unified Diff: Source/modules/webaudio/AudioNode.h

Issue 455353002: Add an ASSERT to verify that AudioNode::dispose() is always called (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioNode.cpp » ('j') | Source/modules/webaudio/AudioNode.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioNode.h
diff --git a/Source/modules/webaudio/AudioNode.h b/Source/modules/webaudio/AudioNode.h
index fc67044cf42d9c431d917dc1872598922572b34b..10b4940c925978323cea10f60eb50e6960de321f 100644
--- a/Source/modules/webaudio/AudioNode.h
+++ b/Source/modules/webaudio/AudioNode.h
@@ -228,6 +228,10 @@ private:
bool m_isMarkedForDeletion;
bool m_isDisabled;
+#ifndef NDEBUG
tkent 2014/08/11 10:13:06 should be |#if ENABLE(ASSERT)|. We have a bot wit
+ bool m_disposeIsCalled;
tkent 2014/08/11 10:13:06 m_disposeWasCalled, or m_didCallDispose?
haraken 2014/08/11 10:33:00 Done.
+#endif
+
#if DEBUG_AUDIONODE_REFERENCES
static bool s_isNodeCountInitialized;
static int s_nodeCount[NodeTypeEnd];
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioNode.cpp » ('j') | Source/modules/webaudio/AudioNode.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698