summaryrefslogtreecommitdiffstats
path: root/qtserialbluetooth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtserialbluetooth.cpp')
-rw-r--r--qtserialbluetooth.cpp4
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);