summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-12-11 23:00:18 +0100
committerCarlos Soriano <csoriano@gnome.org>2015-12-11 23:13:34 +0100
commitbaaa7370bcb2c84fd92e43e1eb6a41f64cd06a2e (patch)
tree3198222f2fcb970ca6e1c99bcaf2d6d31590c76c
parent2beb9cdd9794b2604b70469c660be908cf9d7383 (diff)
downloadnautilus-baaa7370bcb2c84fd92e43e1eb6a41f64cd06a2e.tar.gz
window-slot: don't increase references on dispose...
It's clearly wrong. The TODO doesn't make it better :) We are leaking few of GFiles already...
-rw-r--r--src/nautilus-window-slot.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index d005eee6d..98907b5f3 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -2290,11 +2290,7 @@ nautilus_window_slot_dispose (GObject *object)
* 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?
- * It was already here before the slot migration, though */
- g_object_ref (slot->details->location);
- }
+ g_clear_object (&slot->details->location);
if (slot->details->view_mode_before_search) {
g_free (slot->details->view_mode_before_search);