Fix memory leak.
--HG-- branch : develop
This commit is contained in:
parent
1158b06425
commit
e3cfd7a241
|
@ -249,6 +249,13 @@ VAbstractPattern::VAbstractPattern(QObject *parent)
|
||||||
modified(false)
|
modified(false)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
VAbstractPattern::~VAbstractPattern()
|
||||||
|
{
|
||||||
|
qDeleteAll(toolsOnRemove);
|
||||||
|
toolsOnRemove.clear();
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
QStringList VAbstractPattern::ListMeasurements() const
|
QStringList VAbstractPattern::ListMeasurements() const
|
||||||
{
|
{
|
||||||
|
|
|
@ -84,7 +84,7 @@ class VAbstractPattern : public VDomDocument
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit VAbstractPattern(QObject *parent = nullptr);
|
explicit VAbstractPattern(QObject *parent = nullptr);
|
||||||
virtual ~VAbstractPattern() Q_DECL_EQ_DEFAULT;
|
virtual ~VAbstractPattern();
|
||||||
|
|
||||||
QStringList ListMeasurements() const;
|
QStringList ListMeasurements() const;
|
||||||
QVector<VFormulaField> ListExpressions() const;
|
QVector<VFormulaField> ListExpressions() const;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user