From 23c5dee2f1207a338588473918cf6ff588e4e28b Mon Sep 17 00:00:00 2001 From: Claudiu Olteanu Date: Tue, 18 Aug 2015 21:37:50 +0300 Subject: [PATCH] Add implementation for BTH custom serial close method on Windows Implement the close method used on Windows platforms for our custom serial implementation. Signed-off-by: Claudiu Olteanu Signed-off-by: Dirk Hohndel --- qtserialbluetooth.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);