Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: Source/WebCore/platform/chromium/ClipboardChromium.cpp

Issue 11194057: Merge 129962 - REGRESSION(r122215) - CachedImage::likelyToBeUsedSoon crashes on accessing a deleted… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1271/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ManualTests/drag-image-no-crash.html ('k') | Source/WebCore/platform/mac/ClipboardMac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/chromium/ClipboardChromium.cpp
===================================================================
--- Source/WebCore/platform/chromium/ClipboardChromium.cpp (revision 131762)
+++ Source/WebCore/platform/chromium/ClipboardChromium.cpp (working copy)
@@ -227,6 +227,8 @@
ClipboardChromium::~ClipboardChromium()
{
+ if (m_dragImage)
+ m_dragImage->removeClient(this);
}
PassRefPtr<ClipboardChromium> ClipboardChromium::create(ClipboardType clipboardType,
« no previous file with comments | « ManualTests/drag-image-no-crash.html ('k') | Source/WebCore/platform/mac/ClipboardMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698