[totem/gnome-2-26] Fix crasher when USB storage is encrypted



commit 4a635950fcb8597c39958d2a18125741dbb444a6
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Sep 2 17:22:18 2009 +0100

    Fix crasher when USB storage is encrypted
    
    Meaning that it has an emblem.

 src/totem-menu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/totem-menu.c b/src/totem-menu.c
index ec59fea..b9962fe 100644
--- a/src/totem-menu.c
+++ b/src/totem-menu.c
@@ -807,7 +807,7 @@ add_drive_to_menu (GDrive *drive, guint position, Totem *totem)
 			GIcon *new_icon;
 			new_icon = g_emblemed_icon_get_icon (G_EMBLEMED_ICON (icon));
 			g_object_unref (icon);
-			icon = new_icon;
+			icon = g_object_ref (new_icon);
 		}
 
 		if (G_IS_THEMED_ICON (icon)) {



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