Commit ab66b6b1 authored by eseidel's avatar eseidel

Bug #: 6295

Submitted by: eseidel
Reviewed by: mjs
        Close leak in CollectionInfo due to HashMap migration
        http://bugzilla.opendarwin.org/show_bug.cgi?id=6295

        * khtml/html/html_miscimpl.cpp:
        (DOM::HTMLCollectionImpl::CollectionInfo::~CollectionInfo):
        * khtml/html/html_miscimpl.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bf437b45
2005-12-29 Eric Seidel <eseidel@apple.com>
Reviewed by mjs.
Close leak in CollectionInfo due to HashMap migration
http://bugzilla.opendarwin.org/show_bug.cgi?id=6295
* khtml/html/html_miscimpl.cpp:
(DOM::HTMLCollectionImpl::CollectionInfo::~CollectionInfo):
* khtml/html/html_miscimpl.h:
2005-12-29 Maciej Stachowiak <mjs@apple.com>
Reviewed by Eric.
......
......@@ -98,6 +98,12 @@ HTMLCollectionImpl::CollectionInfo::CollectionInfo() :
reset();
}
HTMLCollectionImpl::CollectionInfo::~CollectionInfo()
{
deleteAllValues(idCache);
deleteAllValues(nameCache);
}
void HTMLCollectionImpl::CollectionInfo::reset()
{
current = 0;
......
......@@ -105,6 +105,7 @@ public:
struct CollectionInfo {
CollectionInfo();
~CollectionInfo();
void reset();
unsigned int version;
NodeImpl *current;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment