diff options
Diffstat (limited to 'qtserialbluetooth.cpp')
-rw-r--r-- | qtserialbluetooth.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qtserialbluetooth.cpp b/qtserialbluetooth.cpp index 0edd3d42b..20f2ecd5d 100644 --- a/qtserialbluetooth.cpp +++ b/qtserialbluetooth.cpp @@ -185,7 +185,9 @@ static int qt_serial_close(serial_t *device) return DC_STATUS_SUCCESS; #if defined(Q_OS_WIN) - // TODO do the cleanup + // Cleanup + closesocket(device->socket); + free(device); #else if (device->socket == NULL) { free(device); |