[mutter] kms/impl-device/simple: Pass the NULL to discard_page_flip() on shut-down



commit 8ca087fee9fceb2c408e442abd18a169e7ef4486
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Thu Jul 1 21:04:01 2021 +0200

    kms/impl-device/simple: Pass the NULL to discard_page_flip() on shut-down
    
    The second argument is an optional GError, not an impl device pointer.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1911>

 src/backends/native/meta-kms-impl-device-simple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/native/meta-kms-impl-device-simple.c 
b/src/backends/native/meta-kms-impl-device-simple.c
index 4f9fe78845..7e8a49413e 100644
--- a/src/backends/native/meta-kms-impl-device-simple.c
+++ b/src/backends/native/meta-kms-impl-device-simple.c
@@ -1503,7 +1503,7 @@ meta_kms_impl_device_simple_prepare_shutdown (MetaKmsImplDevice *impl_device)
 
   g_list_foreach (impl_device_simple->posted_page_flip_datas,
                   (GFunc) meta_kms_page_flip_data_discard_in_impl,
-                  impl_device);
+                  NULL);
   g_clear_list (&impl_device_simple->posted_page_flip_datas, NULL);
 }
 


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