summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authordank@chromium.org <dank@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-01 01:34:34 +0000
committerdank@chromium.org <dank@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-01 01:34:34 +0000
commit5c0b8e45fa1260f311d71073c8a9b89db199d992 (patch)
treed129d03f6291730d9ec0e8b9a48848df0c977751 /chrome
parent973901d8d789923e57702333afb960ae89d39b69 (diff)
downloadchromium_src-5c0b8e45fa1260f311d71073c8a9b89db199d992.zip
chromium_src-5c0b8e45fa1260f311d71073c8a9b89db199d992.tar.gz
chromium_src-5c0b8e45fa1260f311d71073c8a9b89db199d992.tar.bz2
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
Diffstat (limited to 'chrome')
-rw-r--r--chrome/common/gfx/chrome_font_gtk.cc2
1 files changed, 2 insertions, 0 deletions
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_);
}