mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-08 08:49:10 +08:00
Fix: Leak in Tab.cpp in serial port test
This commit is contained in:
parent
07b28b2a8c
commit
617b5158bd
@ -1492,7 +1492,7 @@ void TabPrinter::build()
|
||||
sizer->Add(btn);
|
||||
|
||||
btn->Bind(wxEVT_BUTTON, [this, parent](wxCommandEvent e){
|
||||
auto sender = new GCodeSender();
|
||||
auto sender = Slic3r::make_unique<GCodeSender>();
|
||||
auto res = sender->connect(
|
||||
m_config->opt_string("serial_port"),
|
||||
m_config->opt_int("serial_speed")
|
||||
|
Loading…
x
Reference in New Issue
Block a user