[totem] Fix crasher when USB storage is encrypted



commit 633ba780182807db04efb1943ddb167f341a7802
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 42cf2d8..4a27eef 100644
--- a/src/totem-menu.c
+++ b/src/totem-menu.c
@@ -816,7 +816,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]