Moving the rules deletion to the RuleProperties class

The deletion was happning on the Rule class due to historical reasons.
The consequence of that was a parser memory leak.
This commit is contained in:
Felipe Zimmerle
2017-01-06 01:09:41 -03:00
committed by Felipe Zimmerle
parent 068a3eb517
commit a8e5cce744
5 changed files with 36 additions and 29 deletions

View File

@@ -94,7 +94,7 @@ Rule::Rule(std::string marker)
m_secmarker(true),
m_marker(marker),
m_maturity(0),
m_referenceCount(0),
m_referenceCount(1),
m_fileName(""),
m_lineNumber(0) { }
@@ -113,7 +113,7 @@ Rule::Rule(Operator *_op,
m_secmarker(false),
m_marker(""),
m_maturity(0),
m_referenceCount(0),
m_referenceCount(1),
m_fileName(fileName),
m_lineNumber(lineNumber) {
if (actions != NULL) {