[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/igc 2dc8c54341e: Fix crashes on XI devices being disabled (bug#7
From: |
Pip Cet |
Subject: |
feature/igc 2dc8c54341e: Fix crashes on XI devices being disabled (bug#75870) |
Date: |
Sat, 1 Feb 2025 18:43:53 -0500 (EST) |
branch: feature/igc
commit 2dc8c54341ed2f42d60aaeefee0449e91e929280
Author: Pip Cet <pipcet@protonmail.com>
Commit: Pip Cet <pipcet@protonmail.com>
Fix crashes on XI devices being disabled (bug#75870)
* src/xterm.c (x_free_xi_devices):
(xi_disable_devices) [HAVE_MPS]: Use 'igc_xfree', not 'xfree'.
---
src/xterm.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/xterm.c b/src/xterm.c
index 5cd0fc3033c..5cd71ef984e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5414,7 +5414,11 @@ x_free_xi_devices (struct x_display_info *dpyinfo)
#endif /* HAVE_XINPUT2_2 */
}
+#ifdef HAVE_MPS
+ igc_xfree (dpyinfo->devices);
+#else
xfree (dpyinfo->devices);
+#endif
dpyinfo->devices = NULL;
dpyinfo->num_devices = 0;
}
@@ -13967,7 +13971,11 @@ xi_disable_devices (struct x_display_info *dpyinfo,
}
/* Free the old devices array and replace it with ndevices. */
+#ifdef HAVE_MPS
+ igc_xfree (dpyinfo->devices);
+#else
xfree (dpyinfo->devices);
+#endif
dpyinfo->devices = devices;
dpyinfo->num_devices = ndevices;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- feature/igc 2dc8c54341e: Fix crashes on XI devices being disabled (bug#75870),
Pip Cet <=