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



commit d0af0a46c6ad5081e492be6277a3eb385b1c5637
Author: Rahul Verma <rv404674 gmail com>
Date:   Wed Mar 21 14:36:48 2018 +0100

    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 98e6f35d4..3ccbf54bb 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -159,7 +159,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]