From 5c0b8e45fa1260f311d71073c8a9b89db199d992 Mon Sep 17 00:00:00 2001 From: "dank@chromium.org" Date: Wed, 1 Apr 2009 01:34:34 +0000 Subject: Plug memory leaks in TextEliderTest.TestGeneralEliding Fixes linux modules valgrind builder Review URL: http://codereview.chromium.org/56134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12927 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/gfx/chrome_font_gtk.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome') diff --git a/chrome/common/gfx/chrome_font_gtk.cc b/chrome/common/gfx/chrome_font_gtk.cc index c3044e8..bdb0324 100644 --- a/chrome/common/gfx/chrome_font_gtk.cc +++ b/chrome/common/gfx/chrome_font_gtk.cc @@ -36,7 +36,9 @@ ChromeFont::ChromeFont() { default_font_ = new ChromeFont(CreateFont(UTF8ToWide(name), size / PANGO_SCALE)); + pango_font_description_free(desc); g_free(font_name); + g_value_unset(&value); DCHECK(default_font_); } -- cgit v1.1