[gnome-flashback] monitor-manager: unref variants obtained from g_variant_iter_get_next_value()



commit 150aef50c36073e5c2159afb9b7ef3746985a6ab
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Oct 27 12:27:00 2017 +0200

    monitor-manager: unref variants obtained from g_variant_iter_get_next_value()
    
    Those are being leaked.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=789553

 backends/gf-monitor-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/backends/gf-monitor-manager.c b/backends/gf-monitor-manager.c
index ec661ea..ee6ce55 100644
--- a/backends/gf-monitor-manager.c
+++ b/backends/gf-monitor-manager.c
@@ -866,6 +866,8 @@ create_logical_monitor_config_from_variant (GfMonitorManager            *manager
                                                            monitor_config_variant,
                                                            error);
 
+      g_variant_unref (monitor_config_variant);
+
       if (!monitor_config)
         goto err;
 


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