Index: Source/platform/graphics/Canvas2DLayerBridge.cpp |
diff --git a/Source/platform/graphics/Canvas2DLayerBridge.cpp b/Source/platform/graphics/Canvas2DLayerBridge.cpp |
index f4b28f8a86d367aa2ddd2b771eb50a2d4c5c2dda..6b785cf5b98f819a2661d9e15a8a480540922bcc 100644 |
--- a/Source/platform/graphics/Canvas2DLayerBridge.cpp |
+++ b/Source/platform/graphics/Canvas2DLayerBridge.cpp |
@@ -120,6 +120,8 @@ Canvas2DLayerBridge::~Canvas2DLayerBridge() |
{ |
ASSERT(m_destructionInProgress); |
ASSERT(!Canvas2DLayerManager::get().isInList(this)); |
+ if (m_canvas) |
+ m_canvas->setNotificationClient(nullptr); |
m_layer.clear(); |
ASSERT(m_mailboxes.size() == 0); |
#ifndef NDEBUG |