From 1a8a68a6313adbcee339f4f3fee702f3a10637da Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Thu, 1 Feb 2024 00:50:24 -0500 Subject: [PATCH] Unmanage child before destroying in XmDev --- xmdev/src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xmdev/src/main.c b/xmdev/src/main.c index 4b568c7..14ed5ee 100644 --- a/xmdev/src/main.c +++ b/xmdev/src/main.c @@ -315,6 +315,7 @@ void DeviceDelete (ConstString name) { void DeviceFree (Device *this) { if (this == NULL) return; + XtUnmanageChild(this->widget); XtDestroyWidget(this->widget); XtFree((char *)(this->name)); XtFree((char *)(this->mountPoint));