Commit 4edc08f2 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Don't free result of g_app_info_get_icon ().

2008-01-18  Alexander Larsson  <alexl@redhat.com>

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


svn path=/trunk/; revision=13618
parent 46454b20
2008-01-18 Alexander Larsson <alexl@redhat.com>
* src/nautilus-x-content-bar.c:
Don't free result of g_app_info_get_icon ().
2008-01-17 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-desktop-icon-file.c:
......
......@@ -114,7 +114,6 @@ nautilus_x_content_bar_set_x_content_type (NautilusXContentBar *bar, const char
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 @@ nautilus_x_content_bar_get_mount (NautilusXContentBar *bar)
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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment