[gnome-desktop: 2/6] Don't leak all_transforms in crtc_initialize



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

    Don't leak all_transforms in crtc_initialize
    
    Thanks /u/LvS
    
    https://gitlab.gnome.org/GNOME/gnome-desktop/issues/6

 libgnome-desktop/gnome-rr.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index f9cdc4b4..974d79e1 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -1996,6 +1996,7 @@ crtc_initialize (GnomeRRCrtc *crtc, GVariant *info)
     
     while (g_variant_iter_loop (all_transforms, "u", &transform))
        crtc->all_transforms |= 1 << transform;
+    g_variant_iter_free (all_transforms);
 }
 
 static void


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