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));