cursor-tracker/x11: Don't leak xfixes cursor sprite

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1391
This commit is contained in:
Jonas Ådahl 2020-07-31 21:09:14 +02:00
parent 3d19b8f49c
commit 5f5ef704fc

View File

@ -143,6 +143,7 @@ meta_cursor_tracker_x11_dispose (GObject *object)
MetaCursorTrackerX11 *tracker_x11 = META_CURSOR_TRACKER_X11 (object); MetaCursorTrackerX11 *tracker_x11 = META_CURSOR_TRACKER_X11 (object);
g_clear_handle_id (&tracker_x11->update_position_timeout_id, g_source_remove); g_clear_handle_id (&tracker_x11->update_position_timeout_id, g_source_remove);
g_clear_object (&tracker_x11->xfixes_cursor);
G_OBJECT_CLASS (meta_cursor_tracker_x11_parent_class)->dispose (object); G_OBJECT_CLASS (meta_cursor_tracker_x11_parent_class)->dispose (object);
} }