summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-desktop-link.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2003-05-23 15:38:12 +0000
committerAlexander Larsson <alexl@src.gnome.org>2003-05-23 15:38:12 +0000
commite69640f99e62b694f862dc55d4bc0eaa908c309e (patch)
tree6b55813ec3036656bbdf6d9d71ca1f59241a3456 /libnautilus-private/nautilus-desktop-link.c
parent9af58231dec2e98f5ad4510396424365e75331de (diff)
downloadnautilus-e69640f99e62b694f862dc55d4bc0eaa908c309e.tar.gz
Don't ref directory twice. Rename finalizer.
2003-05-23 Alexander Larsson <alexl@redhat.com> * libnautilus-private/nautilus-desktop-icon-file.c: Don't ref directory twice. Rename finalizer. * libnautilus-private/nautilus-desktop-link-monitor.c: unref monitor on shutdown Unref correct object in finalize * libnautilus-private/nautilus-desktop-link.c: unref icon file in finalizer.
Diffstat (limited to 'libnautilus-private/nautilus-desktop-link.c')
-rw-r--r--libnautilus-private/nautilus-desktop-link.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-desktop-link.c b/libnautilus-private/nautilus-desktop-link.c
index f97209612..b5270d616 100644
--- a/libnautilus-private/nautilus-desktop-link.c
+++ b/libnautilus-private/nautilus-desktop-link.c
@@ -394,6 +394,8 @@ desktop_link_finalize (GObject *object)
if (link->details->icon_file != NULL) {
nautilus_desktop_icon_file_remove (link->details->icon_file);
+ nautilus_file_unref (NAUTILUS_FILE (link->details->icon_file));
+ link->details->icon_file = NULL;
}
if (link->details->type == NAUTILUS_DESKTOP_LINK_HOME) {