diff options
author | Conor Curran <conor.curran@canonical.com> | 2012-01-26 14:50:10 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2012-01-26 14:50:10 +0000 |
commit | 8b2ab5bfbc1b40dde9db2fcdb1074221f42125f0 (patch) | |
tree | 5befc2940f672b3d94b7933ac00c5b893cee119c /src/metadata-widget.c | |
parent | ae4f73ab037fa9fd4ffce9d88acba4d739ba007f (diff) | |
parent | 6101f59b28f94ebe2ac819c4af61928a0ff17844 (diff) | |
download | ayatana-indicator-sound-8b2ab5bfbc1b40dde9db2fcdb1074221f42125f0.tar.gz ayatana-indicator-sound-8b2ab5bfbc1b40dde9db2fcdb1074221f42125f0.tar.bz2 ayatana-indicator-sound-8b2ab5bfbc1b40dde9db2fcdb1074221f42125f0.zip |
charles fixes for invisibility flag
Diffstat (limited to 'src/metadata-widget.c')
-rw-r--r-- | src/metadata-widget.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/metadata-widget.c b/src/metadata-widget.c index 8d816de..a3383df 100644 --- a/src/metadata-widget.c +++ b/src/metadata-widget.c @@ -256,6 +256,7 @@ metadata_widget_dispose (GObject *object) #else gdk_pixbuf_unref(priv->icon_buf); #endif + priv->icon_buf = NULL; } G_OBJECT_CLASS (metadata_widget_parent_class)->dispose (object); } @@ -263,6 +264,10 @@ metadata_widget_dispose (GObject *object) static void metadata_widget_finalize (GObject *object) { + MetadataWidgetPrivate * priv = METADATA_WIDGET_GET_PRIVATE(METADATA_WIDGET(object)); + g_string_free (priv->image_path, TRUE); + g_string_free (priv->old_image_path, TRUE); + G_OBJECT_CLASS (metadata_widget_parent_class)->finalize (object); } @@ -790,8 +795,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! |