Fix null pointer deference that can happen if you exit the program without ever starting the serial port code.
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ SerialWorker::~SerialWorker()
|
||||
serial->disconnect(); //disconnect all signals
|
||||
delete serial;
|
||||
}
|
||||
ticker->stop();
|
||||
if (ticker != NULL) ticker->stop();
|
||||
}
|
||||
|
||||
void SerialWorker::setSerialPort(QSerialPortInfo *port)
|
||||
|
||||
Reference in New Issue
Block a user