[glib: 4/6] gsettingsbackend: Fix a minor memory leak



commit caf5103d4befbaf7a2fdc01ef01484ae168e7657
Author: Philip Withnall <withnall endlessm com>
Date:   Wed Jan 23 15:59:17 2019 +0000

    gsettingsbackend: Fix a minor memory leak
    
    This never caused any problems because the default GSettingsBackend is
    cached forever by GIOModule anyway.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 gio/gsettingsbackend.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gio/gsettingsbackend.c b/gio/gsettingsbackend.c
index ca9b908a5..18026ae56 100644
--- a/gio/gsettingsbackend.c
+++ b/gio/gsettingsbackend.c
@@ -1052,5 +1052,7 @@ g_settings_backend_sync_default (void)
 
       if (class->sync)
         class->sync (backend);
+
+      g_object_unref (backend);
     }
 }


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