[nautilus/gnome-3-28] application: Fix memory leak



commit 47e75e5421239f59c7bce0f0e947f7ea90a9c6bb
Author: Rahul Verma <rv404674 gmail com>
Date:   Wed Mar 21 19:06:48 2018 +0530

    application: Fix memory leak
    
    When displaying an error dialog box, a string that stores the error details, is not being freed. So use 
g_autofree instead.
    
    
    (cherry picked from commit c6cd36999f7715d81b62434cfb835fea37994b51)

 src/nautilus-application.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 3c657ad56..22a01adad 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -163,7 +163,7 @@ check_required_directories (NautilusApplication *self)
         GString *directories_as_string;
         GSList *l;
         char *error_string;
-        const char *detail_string;
+        g_autofree char *detail_string = NULL;
         GtkDialog *dialog;
 
         ret = FALSE;


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