[gnome-desktop: 1/6] Don't leak crts/outputs/modes in fill_out_screen_info



commit ce1b960b399edd01cf6a34241cacf3b3708a0a84
Author: Sam Morris <sam robots org uk>
Date:   Fri Jul 13 17:07:37 2018 +0100

    Don't leak crts/outputs/modes in fill_out_screen_info
    
    https://gitlab.gnome.org/GNOME/gnome-desktop/issues/6

 libgnome-desktop/gnome-rr.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index 8c50f025..f9cdc4b4 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -531,6 +531,11 @@ fill_out_screen_info (ScreenInfo  *info,
 
     fill_screen_info_from_resources (info, serial, crtcs, outputs,
                                     modes, max_width, max_height);
+
+    g_variant_unref (crtcs);
+    g_variant_unref (outputs);
+    g_variant_unref (modes);
+
     return TRUE;
 }
 


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