Chromium Code Reviews| Index: src/log.cc |
| =================================================================== |
| --- src/log.cc (revision 8294) |
| +++ src/log.cc (working copy) |
| @@ -400,8 +400,10 @@ |
| void Remove(Address code_address) { |
| HashMap::Entry* entry = FindEntry(code_address); |
| - if (entry != NULL) DeleteArray(static_cast<const char*>(entry->value)); |
| - RemoveEntry(entry); |
| + if (entry != NULL) { |
| + DeleteArray(static_cast<const char*>(entry->value)); |
|
mnaganov (inactive)
2011/06/22 05:02:47
We allocate an array of char, why do we cast to co
groby-ooo-7-16
2011/06/22 17:17:26
Presumably because DeleteArray takes a pointer to
mnaganov (inactive)
2011/06/22 18:54:23
I mean that a name string is allocated like this:
|
| + RemoveEntry(entry); |
| + } |
| } |
| void Move(Address from, Address to) { |