mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 11:47:54 -06:00
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);
|
sizer->Add(btn);
|
||||||
|
|
||||||
btn->Bind(wxEVT_BUTTON, [this, parent](wxCommandEvent e){
|
btn->Bind(wxEVT_BUTTON, [this, parent](wxCommandEvent e){
|
||||||
auto sender = new GCodeSender();
|
auto sender = Slic3r::make_unique<GCodeSender>();
|
||||||
auto res = sender->connect(
|
auto res = sender->connect(
|
||||||
m_config->opt_string("serial_port"),
|
m_config->opt_string("serial_port"),
|
||||||
m_config->opt_int("serial_speed")
|
m_config->opt_int("serial_speed")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue