Skip to content

Commit

Permalink
fix Segmentation fault when destruct the panel
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunseok-yang committed Nov 6, 2023
1 parent 9700614 commit 63d4614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/panels/jog_control_panel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ JogControlPanel::JogControlPanel(QWidget *parent)

JogControlPanel::~JogControlPanel()
{
handleStopButton();

delete form_;
form_ = nullptr;

Expand All @@ -63,8 +65,6 @@ JogControlPanel::~JogControlPanel()

is_run_thread_ = false;

handleStopButton();

if (move_thread_.joinable())
move_thread_.join();
}
Expand Down

0 comments on commit 63d4614

Please sign in to comment.