Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 1bb89eb8b63b4a4e93d61f1461410c7a425602d5..3e8d93b3ada6b0aca7121626b54d7a7d81638fd7 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -3483,7 +3483,7 @@ TEST(DeferredHandles) { |
DeferredHandleScope deferred(isolate); |
DummyVisitor visitor; |
isolate->handle_scope_implementer()->Iterate(&visitor); |
- deferred.Detach(); |
+ delete deferred.Detach(); |
} |