Fix: Leak in Tab.cpp in serial port test
This commit is contained in:
parent
07b28b2a8c
commit
617b5158bd
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue