freeStruct static method
Implementation
static freeStruct(Pointer<TXDeviceInfoStruct> deviceInfoPointer) {
if (deviceInfoPointer.ref.device_properties != nullptr) {
calloc.free(deviceInfoPointer.ref.device_properties);
}
if (deviceInfoPointer.ref.device_name != nullptr) {
calloc.free(deviceInfoPointer.ref.device_name);
}
if (deviceInfoPointer.ref.device_pid != nullptr) {
calloc.free(deviceInfoPointer.ref.device_pid);
}
calloc.free(deviceInfoPointer);
}