Index: third_party/WebKit/Source/platform/heap/Handle.h |
diff --git a/third_party/WebKit/Source/platform/heap/Handle.h b/third_party/WebKit/Source/platform/heap/Handle.h |
index a82c488d74dca7d0c326c9b4c6fc5a5b10b807a8..0e62b436e1f4e4228ee788a3ae7a6db0cab1ddcb 100644 |
--- a/third_party/WebKit/Source/platform/heap/Handle.h |
+++ b/third_party/WebKit/Source/platform/heap/Handle.h |
@@ -549,7 +549,9 @@ private: |
// released during ThreadState shutdown, clearing the association. |
static void clearPersistentNode(void *self) |
{ |
- (reinterpret_cast<PersistentHeapCollectionBase<Collection>*>(self))->uninitialize(); |
+ PersistentHeapCollectionBase<Collection>* collection = (reinterpret_cast<PersistentHeapCollectionBase<Collection>*>(self)); |
+ collection->uninitialize(); |
+ collection->clear(); |
} |
NO_LAZY_SWEEP_SANITIZE_ADDRESS |