#8615 Qt Charts: fix use-after-free crash.

Fixes #8615.
This commit is contained in:
Kristian Bendiksen
2022-03-04 15:24:51 +01:00
committed by Magne Sjaastad
parent 7a954804ef
commit 93f754102d
4 changed files with 18 additions and 1 deletions

View File

@@ -131,6 +131,7 @@ RimPlotCurve::~RimPlotCurve()
{
if ( m_plotCurve )
{
m_plotCurve->detach();
delete m_plotCurve;
m_plotCurve = nullptr;
}