mirror of
https://github.com/brl/mutter.git
synced 2025-06-22 21:17:28 +00:00
Don't cast free function passed to g_clear_pointer
The function is intentionally provided as macro to not require a cast. Recently the macro was improved to check that the passed in pointer matches the free function, so the cast to GDestroyNotify is now even harmful. https://gitlab.gnome.org/GNOME/mutter/merge_requests/176
This commit is contained in:
@ -931,9 +931,9 @@ meta_display_close (MetaDisplay *display,
|
||||
|
||||
g_clear_object (&display->gesture_tracker);
|
||||
|
||||
g_clear_pointer (&display->stack, (GDestroyNotify) meta_stack_free);
|
||||
g_clear_pointer (&display->stack, meta_stack_free);
|
||||
g_clear_pointer (&display->stack_tracker,
|
||||
(GDestroyNotify) meta_stack_tracker_free);
|
||||
meta_stack_tracker_free);
|
||||
|
||||
if (display->focus_timeout_id)
|
||||
g_source_remove (display->focus_timeout_id);
|
||||
|
Reference in New Issue
Block a user