summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgnacy Kuchciński <ignacykuchcinski@gmail.com>2022-09-09 21:10:57 +0200
committerAntónio Fernandes <antoniof@gnome.org>2022-12-04 15:24:25 +0000
commitd45b820d4a082287ef52f538fc001009ad5204e1 (patch)
treeba4dc9ec58dc1b46a8f7003ae39fd53168f2310a /src
parentd622bad925e7adac5a83ee48181f56d24d20c02f (diff)
downloadnautilus-d45b820d4a082287ef52f538fc001009ad5204e1.tar.gz
window-slot: Unref new location
We increase its reference count again in nautilus_window_slot_set_location (), so unref it afterwards to prevent a leak going back all the way to nautilus_application_activate ()
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-window-slot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 2659916b2..170b2b4d1 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -2592,6 +2592,8 @@ nautilus_window_slot_update_for_new_location (NautilusWindowSlot *self)
nautilus_window_slot_set_location (self, new_location);
+ g_object_unref (new_location);
+
/* Sync the actions for this new location. */
nautilus_window_slot_sync_actions (self);
}