diff options
author | Corey Berla <corey@berla.me> | 2022-08-18 12:10:55 -0700 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-09-01 21:42:41 +0000 |
commit | 96ff1710e4c2d05c97e360a998074785b2d2e1de (patch) | |
tree | 0a64db59eff9dbd77ca49f9e956c73b0b8f163cd /src/nautilus-files-view-dnd.c | |
parent | 2bed5adac49dcf05f7d320df9b6faefc1931cc04 (diff) | |
download | nautilus-96ff1710e4c2d05c97e360a998074785b2d2e1de.tar.gz |
files-view-dnd: Stop leaking container_uri
Diffstat (limited to 'src/nautilus-files-view-dnd.c')
-rw-r--r-- | src/nautilus-files-view-dnd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nautilus-files-view-dnd.c b/src/nautilus-files-view-dnd.c index 0f305c832..69254be65 100644 --- a/src/nautilus-files-view-dnd.c +++ b/src/nautilus-files-view-dnd.c @@ -349,9 +349,8 @@ nautilus_files_view_drop_proxy_received_uris (NautilusFilesView *view, const char *target_uri, GdkDragAction action) { - char *container_uri; + g_autofree char *container_uri = NULL; - container_uri = NULL; if (target_uri == NULL) { container_uri = nautilus_files_view_get_backing_uri (view); @@ -378,8 +377,6 @@ nautilus_files_view_drop_proxy_received_uris (NautilusFilesView *view, nautilus_files_view_move_copy_items (view, source_uri_list, target_uri != NULL ? target_uri : container_uri, action); - - g_free (container_uri); } void |