diff --git a/dlls/hidclass.sys/device.c b/dlls/hidclass.sys/device.c index e96177225ba..9470f7d2f7e 100644 --- a/dlls/hidclass.sys/device.c +++ b/dlls/hidclass.sys/device.c @@ -202,6 +202,7 @@ void HID_DeleteDevice(DEVICE_OBJECT *device) HeapFree(GetProcessHeap(), 0, ext->device_name); RtlFreeUnicodeString(&ext->link_name); + IoDetachDevice(ext->deviceExtension.NextDeviceObject); IoDeleteDevice(device); }