Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1555)

Unified Diff: base/mime_util_linux.cc

Issue 155515: Fix leak of g_object_get value. This was showing up on the (Closed)
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mime_util_linux.cc
diff --git a/base/mime_util_linux.cc b/base/mime_util_linux.cc
index 12dff7acc8005b0859212f4a088afd49c50f96c8..43e5a2d46e31589f7c8bf49a4f0a9011d78c1a16 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");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698