nautilus r13618 - in trunk: . src



Author: alexl
Date: Fri Jan 18 08:06:58 2008
New Revision: 13618
URL: http://svn.gnome.org/viewvc/nautilus?rev=13618&view=rev

Log:
2008-01-18  Alexander Larsson  <alexl redhat com>

        * src/nautilus-x-content-bar.c:
	Don't free result of g_app_info_get_icon ().



Modified:
   trunk/ChangeLog
   trunk/src/nautilus-x-content-bar.c

Modified: trunk/src/nautilus-x-content-bar.c
==============================================================================
--- trunk/src/nautilus-x-content-bar.c	(original)
+++ trunk/src/nautilus-x-content-bar.c	Fri Jan 18 08:06:58 2008
@@ -114,7 +114,6 @@
 			image = gtk_image_new_from_pixbuf (pixbuf);
 			g_object_unref (pixbuf);
 			g_object_unref (icon_info);
-			g_object_unref (icon);
 		} else {
 			image = NULL;
 		}
@@ -150,8 +149,9 @@
 void
 nautilus_x_content_bar_set_mount (NautilusXContentBar *bar, GMount *mount)
 {
-	if (bar->priv->mount != NULL)
+	if (bar->priv->mount != NULL) {
 		g_object_unref (bar->priv->mount);
+	}
 	bar->priv->mount = mount != NULL ? g_object_ref (mount) : NULL;
 }
 



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