Reviewers: mvstanton,
Description:
Fix memory leak in RootIndexMap.
[email protected]
Please review this at https://codereview.chromium.org/671153002/
Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+2, -0 lines):
M src/serialize.h
Index: src/serialize.h
diff --git a/src/serialize.h b/src/serialize.h
index
0a0ccc7e07650aa00d7ff38f4d30ac57a52c62b9..bc40b8f711b4a86efa8742f11705fc6aca6e29bf
100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -169,6 +169,8 @@ class RootIndexMap : public AddressMapBase {
public:
explicit RootIndexMap(Isolate* isolate);
+ ~RootIndexMap() { delete map_; }
+
static const int kInvalidRootIndex = -1;
int Lookup(HeapObject* obj) {
HashMap::Entry* entry = LookupEntry(map_, obj, false);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.