kms/page-flip: Make destroy notify function optional
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2777>
This commit is contained in:
parent
587da92b0a
commit
6059d8f42d
@ -80,7 +80,8 @@ static void
|
|||||||
meta_kms_page_flip_closure_free (MetaKmsPageFlipClosure *closure)
|
meta_kms_page_flip_closure_free (MetaKmsPageFlipClosure *closure)
|
||||||
{
|
{
|
||||||
g_clear_pointer (&closure->page_flip_data, meta_kms_page_flip_data_unref);
|
g_clear_pointer (&closure->page_flip_data, meta_kms_page_flip_data_unref);
|
||||||
g_clear_pointer (&closure->user_data, closure->destroy_notify);
|
if (closure->destroy_notify)
|
||||||
|
g_clear_pointer (&closure->user_data, closure->destroy_notify);
|
||||||
g_free (closure);
|
g_free (closure);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user