summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 20:31:26 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-14 20:31:26 +0000
commit433475fdc35bd6c904405e1451d1b351c41e81d7 (patch)
treebb87b82f0aced4442f20d84237dc96ecf2287d7d
parent261b452b8c5ee1c3cf139236eec15fba9a36bf06 (diff)
downloadchromium_src-433475fdc35bd6c904405e1451d1b351c41e81d7.zip
chromium_src-433475fdc35bd6c904405e1451d1b351c41e81d7.tar.gz
chromium_src-433475fdc35bd6c904405e1451d1b351c41e81d7.tar.bz2
Fix leak of g_object_get value. This was showing up on the
valgrind ui test buildbot. The docs say we have to free the value: http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-get BUG=16724 Review URL: http://codereview.chromium.org/155515 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20657 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/mime_util_linux.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/mime_util_linux.cc b/base/mime_util_linux.cc
index 12dff7a..43e5a2d 100644
--- a/base/mime_util_linux.cc
+++ b/base/mime_util_linux.cc
@@ -510,6 +510,7 @@ void InitDefaultThemes() {
&gtk_theme_name, NULL);
default_themes[1] = IconTheme::LoadTheme(gtk_theme_name);
default_themes[2] = IconTheme::LoadTheme("gnome");
+ g_free(gtk_theme_name);
}
// hicolor needs to be last per icon theme spec.
default_themes[3] = IconTheme::LoadTheme("hicolor");