[grilo-plugins] optical-media: Fix incorrect emblemed icon handling



commit d4ce00fdf17b3f3000be836e62307b09ebdf0c8e
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jan 21 19:02:00 2014 +0100

    optical-media: Fix incorrect emblemed icon handling
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723990

 src/optical-media/grl-optical-media.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/optical-media/grl-optical-media.c b/src/optical-media/grl-optical-media.c
index c6b8f3d..350e8aa 100644
--- a/src/optical-media/grl-optical-media.c
+++ b/src/optical-media/grl-optical-media.c
@@ -230,8 +230,7 @@ get_uri_for_gicon (GIcon *icon)
   if (G_IS_EMBLEMED_ICON (icon) != FALSE) {
     GIcon *new_icon;
     new_icon = g_emblemed_icon_get_icon (G_EMBLEMED_ICON (icon));
-    g_object_unref (icon);
-    icon = g_object_ref (new_icon);
+    icon = new_icon;
   }
 
   if (G_IS_FILE_ICON (icon) != FALSE) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]