Unmanage child before destroying in XmDev

This commit is contained in:
Sasha Koshka 2024-02-01 00:50:24 -05:00
parent 58ef75e455
commit 1a8a68a631

View File

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