diff options
author | Rui Matos <tiagomatos@gmail.com> | 2016-11-09 19:05:52 +0100 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2016-11-21 15:33:53 +0100 |
commit | a943c0fc12ac40659ff07f5ce12374c78af31938 (patch) | |
tree | 60428060b15d4514e19805f2d33f598fc3e5fa5e /src | |
parent | 76f890a26f86cd0010ae2dd0465fe1ecd771ca19 (diff) | |
download | mutter-a943c0fc12ac40659ff07f5ce12374c78af31938.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backends/meta-monitor-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |