diff options
author | Rahul Verma <rv404674@gmail.com> | 2018-03-21 19:06:48 +0530 |
---|---|---|
committer | Carlos Soriano <csoriano1618@gmail.com> | 2018-04-09 19:05:28 +0000 |
commit | 47e75e5421239f59c7bce0f0e947f7ea90a9c6bb (patch) | |
tree | 0c63b673a3f975023b036e9e5b40966304705797 | |
parent | c9d73d5a715c7a8f52e2b1b4ec6548619ed163a1 (diff) | |
download | nautilus-47e75e5421239f59c7bce0f0e947f7ea90a9c6bb.tar.gz |
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)
-rw-r--r-- | src/nautilus-application.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |