From 8ca087fee9fceb2c408e442abd18a169e7ef4486 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 1 Jul 2021 21:04:01 +0200 Subject: [PATCH] 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: --- 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 4f9fe7884..7e8a49413 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); }