[mutter/wayland] MonitorConfig: fix memory leak



commit 67fff237e65055c2fac3679a37563f1fba83e036
Author: Pavel Vasin <rat4vier gmail com>
Date:   Sat Sep 14 16:21:25 2013 +0400

    MonitorConfig: fix memory leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708070

 src/core/monitor-config.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/core/monitor-config.c b/src/core/monitor-config.c
index c223a38..31fd0c1 100644
--- a/src/core/monitor-config.c
+++ b/src/core/monitor-config.c
@@ -749,6 +749,9 @@ meta_monitor_config_load (MetaMonitorConfig  *self)
 
       free_output_key (&parser.key);
     }
+
+  g_markup_parse_context_free (context);
+  g_free (contents);
 }
 
 MetaMonitorConfig *


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