Skip to content

Commit 4e2d653

Browse files
committed
Fixed free of serial port
1 parent 997a6c3 commit 4e2d653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qt/writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ void Writer::serialPortDestroy()
317317
if (!serialPort)
318318
return;
319319
serialPort->stop();
320-
free(serialPort);
320+
delete serialPort;
321321
serialPort = nullptr;
322322
}
323323

0 commit comments

Comments
 (0)