[nautilus] application: Fix memory leak



commit c6cd36999f7715d81b62434cfb835fea37994b51
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.

 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 f39eb73a1..8d8204384 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]