Index: third_party/WebKit/Source/core/dom/Node.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp |
index bdca7501b85e19f7ad25bb4b98438dc239679017..60920cfb408539910b00795f2e1b1eb3f4ff6499 100644 |
--- a/third_party/WebKit/Source/core/dom/Node.cpp |
+++ b/third_party/WebKit/Source/core/dom/Node.cpp |
@@ -264,6 +264,8 @@ Node::~Node() |
// this condition (we cannot directly access it here.) |
RELEASE_ASSERT(hasRareData() || !layoutObject()); |
InstanceCounters::decrementCounter(InstanceCounters::NodeCounter); |
+ if (!hasRareData() && !hasLayoutObject() && m_data.m_computedStyle) |
+ m_data.m_computedStyle->deref(); |
} |
NodeRareData* Node::rareData() const |