From 7140a1491d3302554ebb8d60d7da23b2d6c0dbac Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Fri, 19 Mar 2010 19:36:49 +0000 Subject: Fixes leak in WidgetGtk::OnWindowPaint. BUG=none TEST=none Review URL: http://codereview.chromium.org/1155002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42135 0039d316-1c4b-4281-b951-d872f2087c98 --- views/widget/widget_gtk.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'views') diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index 2e950ef..4513a01 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -961,6 +961,7 @@ void WidgetGtk::OnWindowPaint(GtkWidget* widget, GdkEventExpose* event) { cairo_set_source_rgba(cr, 0, 0, 0, 0); cairo_rectangle(cr, 0, 0, width, height); cairo_fill(cr); + cairo_destroy(cr); } bool WidgetGtk::ProcessMousePressed(GdkEventButton* event) { -- cgit v1.1