diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-19 19:36:49 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-19 19:36:49 +0000 |
commit | 7140a1491d3302554ebb8d60d7da23b2d6c0dbac (patch) | |
tree | e0416cd4900ad4635e51a745e98e2e35831eef84 | |
parent | a03c04800033b9400a7fa4559157ef098a5d4721 (diff) | |
download | chromium_src-7140a1491d3302554ebb8d60d7da23b2d6c0dbac.zip chromium_src-7140a1491d3302554ebb8d60d7da23b2d6c0dbac.tar.gz chromium_src-7140a1491d3302554ebb8d60d7da23b2d6c0dbac.tar.bz2 |
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
-rw-r--r-- | views/widget/widget_gtk.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |