backends/x11: Fix memory leak in meta_x11_handle_event()

The event was leaked after it had been processed.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2192>
This commit is contained in:
Sebastian Keller 2022-01-02 03:55:14 +01:00 committed by Marge Bot
parent 3941597485
commit 97dd5d8877

View File

@ -103,6 +103,7 @@ meta_x11_handle_event (XEvent *xevent)
{
/* forward the event into clutter for emission etc. */
clutter_do_event (event);
clutter_event_free (event);
--spin;
}