mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
Fix memory leak in ProgressStatusBar
This commit is contained in:
parent
ca1c78b3fc
commit
cc5d74084c
2 changed files with 15 additions and 15 deletions
|
@ -14,20 +14,20 @@
|
|||
|
||||
namespace Slic3r {
|
||||
|
||||
ProgressStatusBar::ProgressStatusBar(wxWindow *parent, int id):
|
||||
self(new wxStatusBar(parent ? parent : GUI::wxGetApp().mainframe,
|
||||
id == -1? wxID_ANY : id)),
|
||||
m_timer(new wxTimer(self)),
|
||||
m_prog (new wxGauge(self,
|
||||
wxGA_HORIZONTAL,
|
||||
100,
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize)),
|
||||
m_cancelbutton(new wxButton(self,
|
||||
-1,
|
||||
_(L("Cancel")),
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize))
|
||||
ProgressStatusBar::ProgressStatusBar(wxWindow *parent, int id)
|
||||
: self{new wxStatusBar(parent ? parent : GUI::wxGetApp().mainframe,
|
||||
id == -1 ? wxID_ANY : id)}
|
||||
, m_prog{new wxGauge(self,
|
||||
wxGA_HORIZONTAL,
|
||||
100,
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize)}
|
||||
, m_cancelbutton{new wxButton(self,
|
||||
-1,
|
||||
_(L("Cancel")),
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize)}
|
||||
, m_timer{new wxTimer(self)}
|
||||
{
|
||||
m_prog->Hide();
|
||||
m_cancelbutton->Hide();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue