From 76b6cc02d6c400191c902e19ca629f3abed72e80 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Wed, 9 Nov 2016 19:05:52 +0100 Subject: [PATCH] meta-monitor-config: Initialize MetaConfiguration's properly We weren't initializing the ref count which means we could either be leaking or end up using free'd memory. https://bugzilla.gnome.org/show_bug.cgi?id=774135 --- src/backends/meta-monitor-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/meta-monitor-config.c b/src/backends/meta-monitor-config.c index f691e5423..21e3126f2 100644 --- a/src/backends/meta-monitor-config.c +++ b/src/backends/meta-monitor-config.c @@ -454,7 +454,7 @@ handle_end_element (GMarkupParseContext *context, { if (strcmp (element_name, "configuration") == 0 && parser->unknown_count == 0) { - MetaConfiguration *config = g_slice_new (MetaConfiguration); + MetaConfiguration *config = config_new (); g_assert (parser->key_array->len == parser->output_array->len);