diff -r 851de24ecb61 -r 8e3ae153e2c9 src/Dictionary.cpp --- a/src/Dictionary.cpp Sun Sep 20 21:25:47 2009 -0700 +++ b/src/Dictionary.cpp Thu Sep 24 10:28:50 2009 -0700 @@ -186,9 +186,9 @@ } bool HashDictionary::remove (Key key) { - KeyAndValue *kv = (KeyAndValue*) _hash.get(key); + KeyAndValue *kv = (KeyAndValue*) _hash.remove(key); if (kv) { - free(kv); + delete kv; return true; } else return false; @@ -196,7 +196,7 @@ void HashDictionary::removeAll() { for (Hash::Iterator it(&_hash); it; ++it) - free(it.value()); + delete (KeyAndValue*) it.value(); _hash.removeAll(); }