Fix NZXT Hue plus not freeing the serialport

This commit is contained in:
Alex
2021-10-15 14:04:47 +02:00
parent 6a56f92542
commit 6cc2009981
2 changed files with 2 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ HuePlusController::HuePlusController()
HuePlusController::~HuePlusController()
{
delete serialport;
}
void HuePlusController::Initialize(char* port)

View File

@@ -96,7 +96,7 @@ public:
private:
std::string port_name;
serial_port *serialport;
serial_port *serialport = nullptr;
void SendPacket
(