diff options
author | António Fernandes <antoniof@gnome.org> | 2022-10-22 22:10:10 +0000 |
---|---|---|
committer | Corey Berla <corey@berla.me> | 2023-04-20 13:44:55 +0000 |
commit | ad18733acad92cbd69e63d283931ca8f4ca93d1f (patch) | |
tree | 7ba729a5274dd39ef497227d3cb861c9acbf8de2 | |
parent | c02b2204c7c74356a8d547be852e889113201ec1 (diff) | |
download | nautilus-ad18733acad92cbd69e63d283931ca8f4ca93d1f.tar.gz |
window-slot: Make ownership transfer of pending location explicit
-rw-r--r-- | src/nautilus-window-slot.c | 4 |
1 files changed, 1 insertions, 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); |