Fix crash when the same XI device appears in multiple hierarchy events

* src/xterm.c (xi_disable_devices): Move `out' label into the
outermost loop.  (bug#79343)
This commit is contained in:
Po Lu 2025-09-04 09:10:02 +08:00
parent d314971e04
commit 446c037d57

View file

@ -13945,12 +13945,12 @@ xi_disable_devices (struct x_display_info *dpyinfo,
goto out;
}
devices[ndevices++] = dpyinfo->devices[i];
out:
continue;
}
devices[ndevices++] = dpyinfo->devices[i];
out:
continue;
}
/* Free the old devices array and replace it with ndevices. */