aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-01-24 20:11:12 -0600
committerCharles Kerr <charles.kerr@canonical.com>2012-01-24 20:11:12 -0600
commit1bdef61d49c35e1476117ae80c99610296bab68c (patch)
tree179545182925687ad50dec8f8e3031336649a06f /src
parentae4f73ab037fa9fd4ffce9d88acba4d739ba007f (diff)
downloadayatana-indicator-sound-1bdef61d49c35e1476117ae80c99610296bab68c.tar.gz
ayatana-indicator-sound-1bdef61d49c35e1476117ae80c99610296bab68c.tar.bz2
ayatana-indicator-sound-1bdef61d49c35e1476117ae80c99610296bab68c.zip
fix minor memory leak detected by valgrind
Diffstat (limited to 'src')
-rw-r--r--src/metadata-widget.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c
index 8d816de..8304438 100644
--- a/src/metadata-widget.c
+++ b/src/metadata-widget.c
@@ -790,8 +790,9 @@ metadata_widget_set_icon (MetadataWidget *self)
gtk_icon_size_lookup (GTK_ICON_SIZE_MENU, &width, &height);
GString* banshee_string = g_string_new ( "banshee" );
- GString* app_panel = g_string_new ( g_utf8_strdown (dbusmenu_menuitem_property_get(priv->twin_item, DBUSMENU_METADATA_MENUITEM_PLAYER_NAME),
- -1));
+ gchar * tmp = g_utf8_strdown (dbusmenu_menuitem_property_get(priv->twin_item, DBUSMENU_METADATA_MENUITEM_PLAYER_NAME), -1);
+ GString* app_panel = g_string_new (tmp);
+ g_free (tmp);
GdkPixbuf* icon_buf;
// Banshee Special case!