summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-16 17:02:16 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-16 17:02:16 +0000
commit6920f5ac0d0ea336b79f02b5d36751d1043ace29 (patch)
treefe7ded9160ba09e454cad723144b83bba9732ed7 /app
parentdff645ca2837ac1d2b0b2486f63c9e3d1e14f842 (diff)
downloadchromium_src-6920f5ac0d0ea336b79f02b5d36751d1043ace29.zip
chromium_src-6920f5ac0d0ea336b79f02b5d36751d1043ace29.tar.gz
chromium_src-6920f5ac0d0ea336b79f02b5d36751d1043ace29.tar.bz2
Add missing cairo_surface_destroy. Fixes a memory leak.
Review URL: http://codereview.chromium.org/126133 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18497 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rwxr-xr-xapp/gfx/canvas_linux.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/gfx/canvas_linux.cc b/app/gfx/canvas_linux.cc
index 6751115..7e561c6 100755
--- a/app/gfx/canvas_linux.cc
+++ b/app/gfx/canvas_linux.cc
@@ -92,6 +92,7 @@ void Canvas::SizeStringInt(const std::wstring& text,
g_object_unref(layout);
pango_font_description_free(desc);
cairo_destroy(cr);
+ cairo_surface_destroy(surface);
}
void Canvas::ApplySkiaMatrixToCairoContext(cairo_t* cr) {