[libdazzle] reaper: don't leak child GFile



commit 39f8b82c40a91efceec6b373178fb1697f19c88d
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 24 16:59:32 2018 -0800

    reaper: don't leak child GFile

 src/files/dzl-directory-reaper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/files/dzl-directory-reaper.c b/src/files/dzl-directory-reaper.c
index 5496b0f..91d60c2 100644
--- a/src/files/dzl-directory-reaper.c
+++ b/src/files/dzl-directory-reaper.c
@@ -190,7 +190,7 @@ remove_directory_with_children (GFile         *file,
     {
       g_autoptr(GFileInfo) info = infoptr;
       const gchar *name = g_file_info_get_name (info);
-      GFile *child = g_file_get_child (file, name);
+      g_autoptr(GFile) child = g_file_get_child (file, name);
 
       if (g_file_info_get_file_type (info) == G_FILE_TYPE_DIRECTORY)
         {


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