diff options
author | Claudiu Olteanu <olteanu.claudiu@ymail.com> | 2015-08-18 21:37:50 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-08-20 22:45:26 -0700 |
commit | 23c5dee2f1207a338588473918cf6ff588e4e28b (patch) | |
tree | 612b6f55e7b812da575776505914f7d741c9f42c | |
parent | e2cac92d2304b21e7745e37a18c98c47086fc4b4 (diff) | |
download | subsurface-23c5dee2f1207a338588473918cf6ff588e4e28b.tar.gz |
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 <olteanu.claudiu@ymail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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); |