REGRESSION(r122215) - CachedImage::likelyToBeUsedSoon crashes on accessing a deleted...
[WebKit-https.git] / Source / WebCore / platform / mac / ClipboardMac.mm
index 1af14df..2e9f5af 100644 (file)
@@ -65,6 +65,8 @@ ClipboardMac::ClipboardMac(ClipboardType clipboardType, const String& pasteboard
 
 ClipboardMac::~ClipboardMac()
 {
+    if (m_dragImage)
+        m_dragImage->removeClient(this);
 }
 
 bool ClipboardMac::hasData()