From ad18733acad92cbd69e63d283931ca8f4ca93d1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Fernandes?= Date: Sat, 22 Oct 2022 22:10:10 +0000 Subject: window-slot: Make ownership transfer of pending location explicit --- src/nautilus-window-slot.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c index a1af61887..785386ea1 100644 --- a/src/nautilus-window-slot.c +++ b/src/nautilus-window-slot.c @@ -2567,10 +2567,8 @@ nautilus_window_slot_show_special_location_bar (NautilusWindowSlot *self, static void nautilus_window_slot_update_for_new_location (NautilusWindowSlot *self) { - GFile *new_location; + g_autoptr (GFile) new_location = g_steal_pointer (&self->pending_location); NautilusFile *file; - new_location = self->pending_location; - self->pending_location = NULL; file = nautilus_file_get (new_location); nautilus_window_slot_update_bookmark (self, file); -- cgit v1.2.1