kms/cursor-manager: Free struct in meta_kms_cursor_manager_impl_free()

The free function was not actually freeing anything, which was causing a
small leak.

Fixes: 6d873036e ("Add KMS cursor manager")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3188>
This commit is contained in:
Sebastian Keller 2023-08-16 21:19:42 +02:00
parent 5fdb6a847f
commit f57c239a26

View File

@ -507,6 +507,8 @@ static void
meta_kms_cursor_manager_impl_free (MetaKmsCursorManagerImpl *cursor_manager_impl) meta_kms_cursor_manager_impl_free (MetaKmsCursorManagerImpl *cursor_manager_impl)
{ {
g_warn_if_fail (!cursor_manager_impl->crtc_states); g_warn_if_fail (!cursor_manager_impl->crtc_states);
g_free (cursor_manager_impl);
} }
static MetaKmsCursorManagerImpl * static MetaKmsCursorManagerImpl *