kms/impl-device: Use discard_update for pending_update as well

Previously it was just dropped on the floor with no feedback, which
could result in the main thread waiting for something which never
happens.

Fixes: 0d9fd1ead7a7 ("kms/impl-device: Destroy submitted update in disarm_all_deadline_timers")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3964>
This commit is contained in:
Michel Dänzer 2024-11-06 18:30:07 +01:00 committed by Marge Bot
parent f8e8dad0f4
commit 37d1a20644

View File

@ -2075,9 +2075,9 @@ disarm_all_frame_sources (MetaKmsImplDevice *impl_device)
crtc_frame->deadline.is_deadline_page_flip = FALSE;
crtc_frame->await_flush = FALSE;
crtc_frame->pending_page_flip = FALSE;
g_clear_pointer (&crtc_frame->pending_update, meta_kms_update_free);
disarm_crtc_frame_deadline_timer (crtc_frame);
discard_update (impl_device, &crtc_frame->pending_update);
discard_update (impl_device, &crtc_frame->submitted_update.kms_update);
g_clear_pointer (&crtc_frame->submitted_update.source, g_source_destroy);
}