diff options
author | Andrew Duggan <aduggan@synaptics.com> | 2016-05-17 13:30:06 -0700 |
---|---|---|
committer | Andrew Duggan <aduggan@synaptics.com> | 2016-05-17 13:30:49 -0700 |
commit | f5c049f2f81e296448b33d1a25b4a00b55b314a3 (patch) | |
tree | 9adeb7e0d74ee22fba980b803ba8647cac800b8f /rmidevice/rmidevice.cpp | |
parent | 8efee6b49cdcc97054a49f05434e58c1a8ee7ec6 (diff) | |
download | rmi4utils-f5c049f2f81e296448b33d1a25b4a00b55b314a3.tar.gz |
Make sure the RMIDevice's members are cleared on close
Diffstat (limited to 'rmidevice/rmidevice.cpp')
-rw-r--r-- | rmidevice/rmidevice.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rmidevice/rmidevice.cpp b/rmidevice/rmidevice.cpp index 6926304..668301c 100644 --- a/rmidevice/rmidevice.cpp +++ b/rmidevice/rmidevice.cpp @@ -206,6 +206,15 @@ int RMIDevice::QueryBasicProperties() return 0; } +void RMIDevice::Close() +{ + m_functionList.clear(); + m_bCancel = false; + m_bytesPerReadRequest = 0; + m_page = -1; + m_deviceType = RMI_DEVICE_TYPE_ANY; +} + void RMIDevice::PrintProperties() { fprintf(stdout, "manufacturerID:\t\t%d\n", m_manufacturerID); |