mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
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
This commit is contained in:
parent
8acfa0a79c
commit
76b6cc02d6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user