[gnome-builder] beautifier plugin: fix a map entries leak



commit b7aa07a5458720e1cd6f0b91ec3625b07adc5822
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Mon Jan 8 21:42:01 2018 +0100

    beautifier plugin: fix a map entries leak

 src/plugins/beautifier/gb-beautifier-config.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/beautifier/gb-beautifier-config.c b/src/plugins/beautifier/gb-beautifier-config.c
index b8be11e..9be22c1 100644
--- a/src/plugins/beautifier/gb-beautifier-config.c
+++ b/src/plugins/beautifier/gb-beautifier-config.c
@@ -622,6 +622,9 @@ get_entries_worker (GTask        *task,
               add_entries_from_base_path (self, configdir, entries, map, &ret_has_default);
               has_default |= ret_has_default;
               g_clear_pointer (&configdir, g_free);
+
+              if (map != NULL)
+                g_array_free (map, TRUE);
             }
           else if (NULL != (vcs = ide_context_get_vcs (context)))
             {


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