Updated nrex fixes

This commit is contained in:
Lee Zher Huei 2015-07-24 02:02:52 +01:00
parent ef005d4f64
commit 732bfd0baf

View File

@ -181,7 +181,7 @@ struct nrex_node
{
if (next)
{
delete next;
NREX_DELETE(next);
}
}
@ -227,7 +227,7 @@ struct nrex_node_group : public nrex_node
{
for (unsigned int i = 0; i < childset.size(); ++i)
{
delete childset[i];
NREX_DELETE(childset[i]);
}
}
@ -471,7 +471,7 @@ struct nrex_node_quantifier : public nrex_node
{
if (child)
{
delete child;
NREX_DELETE(child);
}
}
@ -598,7 +598,7 @@ nrex::~nrex()
{
if (_root)
{
delete _root;
NREX_DELETE(_root);
}
}
@ -612,7 +612,7 @@ void nrex::reset()
_capturing = 0;
if (_root)
{
delete _root;
NREX_DELETE(_root);
}
_root = NULL;
}