[nautilus] nautilus-file: plug leak



commit 95f7dd7ccfcb3bf939ad0f9efdb4fa2ddefc2a2a
Author: Carlos Soriano <csoriano gnome org>
Date:   Wed Sep 21 20:29:46 2016 +0200

    nautilus-file: plug leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770586

 src/nautilus-file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index f9ca890..ef59757 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -2260,7 +2260,6 @@ real_batch_rename (GList                         *files,
     GList *l1, *l2, *old_files, *new_files;
     NautilusFileOperation *op;
     GFile *location;
-    gchar *new_file_name;
     GString *new_name;
     NautilusFile *file;
     GError *error;
@@ -2287,6 +2286,7 @@ real_batch_rename (GList                         *files,
 
     for (l1 = files, l2 = new_names; l1 != NULL && l2 != NULL; l1 = l1->next, l2 = l2->next)
     {
+        g_autofree gchar *new_file_name;
         file = NAUTILUS_FILE (l1->data);
         new_name = l2->data;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]