summaryrefslogtreecommitdiff
path: root/src/gtk/nautilusgtkplacessidebar.c
diff options
context:
space:
mode:
authorGary Li <gary.li1@uwaterloo.ca>2023-03-10 23:02:09 -0500
committerCorey Berla <corey@berla.me>2023-04-20 13:44:55 +0000
commit59cb3c4529c5a8827d976179a1f4d1777852aea1 (patch)
treeae80d378939fda356321b8b677b0d24fb7772b24 /src/gtk/nautilusgtkplacessidebar.c
parent4b646bcd1de8b3d059ef78f9e00a590062906a10 (diff)
downloadnautilus-59cb3c4529c5a8827d976179a1f4d1777852aea1.tar.gz
application: Take reference of GFile location when cloning window
Nautilus crashes under d45b820d when we open a second window and in both windows navigate to a common new location. This is caused by incorrect reference management in action_clone_window, where neither nautilus_window_slot_get_location nor nautilus_window_slot_get_pending_location increases the ref count of the GFile location. g_autoptr would cause location to be prematurely freed. Take the reference of location to allow g_autoptr to work correctly for all branches of action_clone_window. Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2858
Diffstat (limited to 'src/gtk/nautilusgtkplacessidebar.c')
0 files changed, 0 insertions, 0 deletions