Index: Source/core/frame/FrameDestructionObserver.cpp |
diff --git a/Source/core/frame/FrameDestructionObserver.cpp b/Source/core/frame/FrameDestructionObserver.cpp |
index 6c561da7b28d1136e9370b3f33caa5aeb7b41022..8ba4ed32c9c9f7bf694aed51acdd8449b2acf6b7 100644 |
--- a/Source/core/frame/FrameDestructionObserver.cpp |
+++ b/Source/core/frame/FrameDestructionObserver.cpp |
@@ -39,14 +39,17 @@ FrameDestructionObserver::FrameDestructionObserver(LocalFrame* frame) |
#if !ENABLE(OILPAN) |
FrameDestructionObserver::~FrameDestructionObserver() |
{ |
- observeFrame(0); |
+ observeFrame(nullptr); |
} |
#endif |
void FrameDestructionObserver::observeFrame(LocalFrame* frame) |
{ |
+ ASSERT(!m_frame || !frame); |
+#if !ENABLE(OILPAN) |
if (m_frame) |
m_frame->removeDestructionObserver(this); |
+#endif |
m_frame = frame; |