kms/update: Free struct in meta_kms_crtc_color_updates_free()

The free function was only freeing the structs its members were pointing
to, but not the struct itself, causing a small leak.

Fixes: 0180ffdaa ("backends/native: Introduce MetaKmsCrtcColorUpdate")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3188>
This commit is contained in:
Sebastian Keller 2023-08-16 21:13:20 +02:00
parent 193a21c601
commit 5fdb6a847f

View File

@ -520,6 +520,7 @@ meta_kms_crtc_color_updates_free (MetaKmsCrtcColorUpdate *color_update)
{
if (color_update->gamma.has_update)
g_clear_pointer (&color_update->gamma.state, meta_gamma_lut_free);
g_free (color_update);
}
void