[mutter/gnome-3-26] backends: Plug leaks



commit 8d7f425de41efc9d643df06ba3f03a4e6fc2a115
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Nov 7 10:59:51 2017 +0100

    backends: Plug leaks
    
    The DRM properties container must be destroyed with
    drmModeFreeObjectProperties.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=789984

 src/backends/native/meta-monitor-manager-kms.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c
index 3b23625..cbd5209 100644
--- a/src/backends/native/meta-monitor-manager-kms.c
+++ b/src/backends/native/meta-monitor-manager-kms.c
@@ -312,6 +312,8 @@ find_crtc_properties (MetaMonitorManagerKms *manager_kms,
 
       drmModeFreeProperty (prop);
     }
+
+  drmModeFreeObjectProperties (props);
 }
 
 static drmModePropertyBlobPtr


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