summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/TreeShared.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/TreeShared.h')
-rw-r--r--WebCore/platform/TreeShared.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/WebCore/platform/TreeShared.h b/WebCore/platform/TreeShared.h
index a60ad0d..b844e5f 100644
--- a/WebCore/platform/TreeShared.h
+++ b/WebCore/platform/TreeShared.h
@@ -44,6 +44,7 @@ public:
virtual ~TreeShared()
{
ASSERT(isMainThread());
+ ASSERT(!m_refCount);
ASSERT(m_deletionHasBegun);
}
@@ -58,6 +59,7 @@ public:
void deref()
{
ASSERT(isMainThread());
+ ASSERT(m_refCount >= 0);
ASSERT(!m_deletionHasBegun);
ASSERT(!m_inRemovedLastRefFunction);
if (--m_refCount <= 0 && !m_parent) {