Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xs/src
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2018-07-02 18:18:09 +0300
committerbubnikv <bubnikv@gmail.com>2018-07-02 20:00:36 +0300
commit617b5158bdc7dc9802e050f691fa2e7e4f3e643c (patch)
treedf178777e326cd5bc8c5478a2b08ac6973d4c61f /xs/src
parent07b28b2a8c1b20a4fca89c08719ae6421dc273a5 (diff)
Fix: Leak in Tab.cpp in serial port test
Diffstat (limited to 'xs/src')
-rw-r--r--xs/src/slic3r/GUI/Tab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs/src/slic3r/GUI/Tab.cpp b/xs/src/slic3r/GUI/Tab.cpp
index ebbf4caff..8af00b2b6 100644
--- a/xs/src/slic3r/GUI/Tab.cpp
+++ b/xs/src/slic3r/GUI/Tab.cpp
@@ -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")