[mutter] kms/impl-device-atomic: Fix blob_ids array leak



commit a9d9aee6c0efed45f9094a12177015d3ff2a57b0
Author: Sebastian Keller <skeller gnome org>
Date:   Tue Feb 2 11:51:59 2021 +0100

    kms/impl-device-atomic: Fix blob_ids array leak
    
    release_blob_ids() only destroys the DRM property blobs, but does not
    free the array they were stored in.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1699>

 src/backends/native/meta-kms-impl-device-atomic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/native/meta-kms-impl-device-atomic.c 
b/src/backends/native/meta-kms-impl-device-atomic.c
index a00c91a319..a7c219ef36 100644
--- a/src/backends/native/meta-kms-impl-device-atomic.c
+++ b/src/backends/native/meta-kms-impl-device-atomic.c
@@ -850,7 +850,7 @@ meta_kms_impl_device_atomic_process_update (MetaKmsImplDevice *impl_device,
   GError *error = NULL;
   GList *failed_planes = NULL;
   drmModeAtomicReq *req;
-  GArray *blob_ids;
+  g_autoptr (GArray) blob_ids = NULL;
   int fd;
   uint32_t commit_flags = 0;
   int ret;


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