summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/dom/NodeRareData.h
diff options
context:
space:
mode:
authorKulanthaivel Palanichamy <kulanthaivel@codeaurora.org>2012-11-27 11:50:21 -0800
committerSteve Kondik <shade@chemlab.org>2013-01-21 01:19:49 -0800
commit68e9c4e7cda8607f395a75781809fabbcc2bbeb8 (patch)
treef0821a7c1d6f2f4e1b38ec045efa5f875c7b8a02 /Source/WebCore/dom/NodeRareData.h
parent4bb8cc2e30240dd477bdb3fa20c16c9208ad7292 (diff)
downloadexternal_webkit-68e9c4e7cda8607f395a75781809fabbcc2bbeb8.zip
external_webkit-68e9c4e7cda8607f395a75781809fabbcc2bbeb8.tar.gz
external_webkit-68e9c4e7cda8607f395a75781809fabbcc2bbeb8.tar.bz2
[WebKit] Fix for the memory leak
Memory leak was introduced by "DOM traversal optimizations DOM Core optimizations Prefetch optimization for DOM Tree Traversal" Cachelist was being mismanaged. Removing it. Change-Id: I8abb2b6b30b1fbeb931a19be3567c78c3f697d77
Diffstat (limited to 'Source/WebCore/dom/NodeRareData.h')
-rw-r--r--Source/WebCore/dom/NodeRareData.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/WebCore/dom/NodeRareData.h b/Source/WebCore/dom/NodeRareData.h
index b81dd3f..7bbd0c1 100644
--- a/Source/WebCore/dom/NodeRareData.h
+++ b/Source/WebCore/dom/NodeRareData.h
@@ -22,7 +22,6 @@
#ifndef NodeRareData_h
#define NodeRareData_h
-#include "ChildNodeList.h"
#include "ClassNodeList.h"
#include "DynamicNodeList.h"
#include "NameNodeList.h"
@@ -43,7 +42,7 @@ public:
typedef HashSet<DynamicNodeList*> NodeListSet;
NodeListSet m_listsWithCaches;
- RefPtr<ChildNodeList> m_childNodeListCache;
+ RefPtr<DynamicNodeList::Caches> m_childNodeListCaches;
typedef HashMap<String, ClassNodeList*> ClassNodeListCache;
ClassNodeListCache m_classNodeListCache;
@@ -70,8 +69,7 @@ public:
private:
NodeListsNodeData()
- : m_childNodeListCache(0)
- , m_labelsNodeListCache(0)
+ : m_childNodeListCaches(DynamicNodeList::Caches::create()), m_labelsNodeListCache(0)
{
}
};