Skip to content

Commit

Permalink
free PlotWidget in DockWidget destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikkunzelmann committed Dec 14, 2021
1 parent dbe8cdb commit 1e805bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plotjuggler_app/plot_docker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ DockWidget::DockWidget(PlotDataMapRef& datamap, QWidget* parent)

DockWidget::~DockWidget()
{
if (_plot_widget) {
delete _plot_widget;
_plot_widget = nullptr;
}
}

DockWidget* DockWidget::splitHorizontal()
Expand Down

0 comments on commit 1e805bc

Please sign in to comment.