mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
The std::unique_ptr<RiuPlotWidget> would delete the widget when RimHistogramPlot object was recreated. This would lead to a double-delete since the RiuPlotWidget was already deleted by Qt through the parent-child relationship. Fixed by using QPointer, and leaving the cleanup to Qt.