REGRESSION(r122215) - CachedImage::likelyToBeUsedSoon crashes on accessing a deleted...
[WebKit-https.git] / Source / WebCore / platform / win / ClipboardWin.cpp
index af5e3a2..4435339 100644 (file)
@@ -355,6 +355,8 @@ ClipboardWin::ClipboardWin(ClipboardType clipboardType, const DragDataMap& dataM
 
 ClipboardWin::~ClipboardWin()
 {
+    if (m_dragImage)
+        m_dragImage->removeClient(this);
 }
 
 static bool writeURL(WCDataObject *data, const KURL& url, String title, bool withPlainText, bool withHTML)