diff --git a/plotjuggler_app/plot_docker.cpp b/plotjuggler_app/plot_docker.cpp index f4fdf4b82..ac77fed24 100644 --- a/plotjuggler_app/plot_docker.cpp +++ b/plotjuggler_app/plot_docker.cpp @@ -323,6 +323,10 @@ DockWidget::DockWidget(PlotDataMapRef& datamap, QWidget* parent) DockWidget::~DockWidget() { + if (_plot_widget) { + delete _plot_widget; + _plot_widget = nullptr; + } } DockWidget* DockWidget::splitHorizontal()