mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user