diff options
author | Corey Berla <corey@berla.me> | 2023-01-03 14:02:10 -0800 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2023-03-04 23:43:30 +0000 |
commit | bf8eb76b90bf906107c81fb7e2ca968ab91ba56d (patch) | |
tree | 32ecd2d49ec7097caf8a1da646bf72fbd964ce3e | |
parent | db461c6866105701a17906ffe678a66d655e43a8 (diff) | |
download | nautilus-bf8eb76b90bf906107c81fb7e2ca968ab91ba56d.tar.gz |
Revert "window-slot: Make ownership transfer of pending location explicit"
This reverts commit 16c0a9b102e99ec7aa3c880e034d8aa7b9c5b4f7.
This commit builds on commit d45b820d4a082287ef52f538fc001009ad5204e1
which causes a crash.
-rw-r--r-- | src/nautilus-window-slot.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c index b2e50cbd4..adb9ebb35 100644 --- a/src/nautilus-window-slot.c +++ b/src/nautilus-window-slot.c @@ -2567,8 +2567,10 @@ nautilus_window_slot_show_special_location_bar (NautilusWindowSlot *self, static void nautilus_window_slot_update_for_new_location (NautilusWindowSlot *self) { - g_autoptr (GFile) new_location = g_steal_pointer (&self->pending_location); + GFile *new_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); @@ -2585,6 +2587,7 @@ 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); |