Fix: memory leak on Wayland with IME

For practical purposes this only leaks on exit,
unless seats are change at run-time.
This commit is contained in:
Campbell Barton
2025-04-07 11:24:02 +00:00
parent f49fd3fc92
commit 0ff9a162c1

View File

@@ -6806,6 +6806,12 @@ static void gwl_registry_wl_seat_remove(GWL_Display *display, void *user_data, c
zwp_primary_selection_device_v1_destroy(seat->wp.primary_selection_device);
}
#ifdef WITH_INPUT_IME
if (seat->wp.text_input) {
zwp_text_input_v3_destroy(seat->wp.text_input);
}
#endif
if (seat->wl.data_device) {
wl_data_device_release(seat->wl.data_device);
}