File fast-user-switch-applet-icon-crash.patch of Package fast-user-switch-applet

--- fast-user-switch-applet-2.15.2/src/fusa-manager.c
+++ fast-user-switch-applet-2.15.2/src/fusa-manager.c
@@ -1922,6 +1922,7 @@
   gchar *path;
   gchar *tmp;
   GtkIconTheme *theme;
+  GdkPixbuf *icon;
 
   g_return_val_if_fail (FUSA_IS_MANAGER (manager), NULL);
   g_return_val_if_fail (FUSA_IS_USER (user), NULL);
@@ -1970,13 +1971,14 @@
   else
     theme = gtk_icon_theme_get_default ();
 
-  retval = gtk_icon_theme_load_icon (theme, DEFAULT_USER_ICON, icon_size,
+  icon = gtk_icon_theme_load_icon (theme, DEFAULT_USER_ICON, icon_size,
 				     0, NULL);
 
-  if (!retval)
-    retval = gtk_icon_theme_load_icon (theme, GTK_STOCK_MISSING_IMAGE,
+  if (!icon)
+    icon = gtk_icon_theme_load_icon (theme, GTK_STOCK_MISSING_IMAGE,
 				       icon_size, 0, NULL);
-
+  retval = gdk_pixbuf_copy (icon);
+  g_object_unref (icon);
   return retval;
 }