Cleared up double-free of a temporary variable.

This commit is contained in:
Samuel D. Crow
2021-04-21 21:54:08 -05:00
parent 7c5f331395
commit e8a47bd3da
2 changed files with 2 additions and 9 deletions

View File

@@ -244,7 +244,8 @@ public:
/* Terminal expression node */
expression(operands *x);
virtual ~expression();
virtual ~expression()
{};
};
/* parent class of all code types */

View File

@@ -466,14 +466,6 @@ operands *expression::evaluate()
return this->op;
}
expression::~expression()
{
if(this->getOp()==O_TERM)
{
op->dispose();
}
}
/* variable definitions */
variableType::variableType(enum SCOPES s, string &name, enum TYPES t, fn *fnHandle):operands(t)
{