Commit 0fa4ee57 authored by darin@apple.com's avatar darin@apple.com

2008-05-05 Darin Adler <darin@apple.com>

        Reviewed by John Sullivan.

        - fix debug-only leak seen on buildbot

        * wtf/HashTable.h:
        (WTF::HashTable::checkKey): After writing an empty value in, but before constructing a
        deleted value on top of it, call the destructor so the empty value doesn't leak.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 2980bb5a
2008-05-05 Darin Adler <darin@apple.com>
Reviewed by John Sullivan.
- fix debug-only leak seen on buildbot
* wtf/HashTable.h:
(WTF::HashTable::checkKey): After writing an empty value in, but before constructing a
deleted value on top of it, call the destructor so the empty value doesn't leak.
2008-05-02 Alexey Proskuryakov <ap@webkit.org>
Reviewed by Geoffrey Garen.
......
......@@ -443,6 +443,7 @@ namespace WTF {
return;
ASSERT(!HashTranslator::equal(KeyTraits::emptyValue(), key));
ValueType deletedValue = Traits::emptyValue();
deletedValue.~ValueType();
Traits::constructDeletedValue(&deletedValue);
ASSERT(!HashTranslator::equal(Extractor::extract(deletedValue), key));
new (&deletedValue) ValueType(Traits::emptyValue());
......
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