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

Unified Diff: Source/core/page/EventHandler.cpp

Issue 302133002: Fix a document memory leak in drag-and-drop. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: addressed the comment Created 6 years, 7 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 | « Source/core/clipboard/Clipboard.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/EventHandler.cpp
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
index 55a07108fe384eddf4e7d7407552417884a1d2ed..3b91fb4dd11166fc9c311b372d95f929bcf027b3 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -3037,8 +3037,10 @@ bool EventHandler::dragHysteresisExceeded(const FloatPoint& dragViewportLocation
void EventHandler::freeClipboard()
{
- if (dragState().m_dragClipboard)
+ if (dragState().m_dragClipboard) {
+ dragState().m_dragClipboard->clearDragImage();
dragState().m_dragClipboard->setAccessPolicy(ClipboardNumb);
+ }
}
void EventHandler::dragSourceEndedAt(const PlatformMouseEvent& event, DragOperation operation)
« no previous file with comments | « Source/core/clipboard/Clipboard.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698