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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_gtk.cc

Issue 62087: Fix a selection clipboard leak. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 | « no previous file | webkit/tools/test_shell/test_webview_delegate_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_gtk.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_gtk.cc (revision 13204)
+++ chrome/browser/renderer_host/render_widget_host_view_gtk.cc (working copy)
@@ -66,6 +66,7 @@
gtk_selection_clear_targets(widget, GDK_SELECTION_PRIMARY);
gtk_selection_add_targets(widget, GDK_SELECTION_PRIMARY, targets,
num_targets);
+ gtk_target_list_unref(target_list);
gtk_target_table_free(targets, num_targets);
// When X requests the contents of the clipboard, GTK will emit the
« no previous file with comments | « no previous file | webkit/tools/test_shell/test_webview_delegate_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698