[nautilus] window-slot: remove unneded unref



commit 97a2553ada8c8015fe22e6ec87e48123b29fa4d4
Author: Carlos Soriano <csoriano gnome org>
Date:   Wed Nov 25 21:19:17 2015 +0100

    window-slot: remove unneded unref

 src/nautilus-window-slot.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 4dada93..03c54cc 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -2278,9 +2278,6 @@ nautilus_window_slot_dispose (GObject *object)
        }
 
        nautilus_window_slot_set_viewed_file (slot, NULL);
-       /* TODO? why do we unref here? the file is NULL.
-        * It was already here before the slot move, though */
-       nautilus_file_unref (slot->details->viewed_file);
 
        if (slot->details->location) {
                /* TODO? why do we ref here, instead of unreffing?


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