Index: Source/platform/heap/HeapTest.cpp |
diff --git a/Source/platform/heap/HeapTest.cpp b/Source/platform/heap/HeapTest.cpp |
index 1aafc8a11ed9fe2206c0b5e1b1d344df71588f18..db6eb0907dbab5c38943e551031c9fe7b4c0bb3e 100644 |
--- a/Source/platform/heap/HeapTest.cpp |
+++ b/Source/platform/heap/HeapTest.cpp |
@@ -4975,12 +4975,13 @@ TEST(HeapTest, RecursiveMutex) |
} |
template<typename T> |
-class TraceIfNeededTester : public GarbageCollected<TraceIfNeededTester<T> > { |
+class TraceIfNeededTester : public GarbageCollectedFinalized<TraceIfNeededTester<T> > { |
public: |
static TraceIfNeededTester<T>* create() { return new TraceIfNeededTester<T>(); } |
static TraceIfNeededTester<T>* create(const T& obj) { return new TraceIfNeededTester<T>(obj); } |
void trace(Visitor* visitor) { TraceIfNeeded<T>::trace(visitor, &m_obj); } |
T& obj() { return m_obj; } |
+ ~TraceIfNeededTester() { } |
private: |
TraceIfNeededTester() { } |
explicit TraceIfNeededTester(const T& obj) : m_obj(obj) { } |