summaryrefslogtreecommitdiff
path: root/src/nautilus-files-view-dnd.c
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2022-08-18 12:10:55 -0700
committerAntónio Fernandes <antoniof@gnome.org>2022-09-01 21:42:41 +0000
commit96ff1710e4c2d05c97e360a998074785b2d2e1de (patch)
tree0a64db59eff9dbd77ca49f9e956c73b0b8f163cd /src/nautilus-files-view-dnd.c
parent2bed5adac49dcf05f7d320df9b6faefc1931cc04 (diff)
downloadnautilus-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.c5
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