Cleared up double-free of a temporary variable.
This commit is contained in:
@@ -244,7 +244,8 @@ public:
|
||||
|
||||
/* Terminal expression node */
|
||||
expression(operands *x);
|
||||
virtual ~expression();
|
||||
virtual ~expression()
|
||||
{};
|
||||
};
|
||||
|
||||
/* parent class of all code types */
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user