summaryrefslogtreecommitdiff
path: root/src/caja-window-slot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/caja-window-slot.c')
-rw-r--r--src/caja-window-slot.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/caja-window-slot.c b/src/caja-window-slot.c
index 51847293..e7d53f2a 100644
--- a/src/caja-window-slot.c
+++ b/src/caja-window-slot.c
@@ -660,16 +660,8 @@ caja_window_slot_dispose (GObject *object)
}
caja_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 */
- caja_file_unref (slot->viewed_file);
- if (slot->location)
- {
- /* TODO? why do we ref here, instead of unreffing?
- * It was already here before the slot migration, though */
- g_object_ref (slot->location);
- }
+ g_clear_object (&slot->location);
g_list_free_full (slot->pending_selection, g_free);
slot->pending_selection = NULL;