summaryrefslogtreecommitdiff
path: root/src/xpath.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/xpath.cc')
-rw-r--r--src/xpath.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xpath.cc b/src/xpath.cc
index b7927cb4..53d337ea 100644
--- a/src/xpath.cc
+++ b/src/xpath.cc
@@ -15,7 +15,7 @@ void xpath_t::initialize()
void xpath_t::shutdown()
{
- delete lookahead;
+ checked_delete(lookahead);
lookahead = NULL;
}
@@ -555,7 +555,7 @@ xpath_t::op_t::~op_t()
case VALUE:
assert(! left);
assert(valuep);
- delete valuep;
+ checked_delete(valuep);
break;
case NODE_NAME:
@@ -564,7 +564,7 @@ xpath_t::op_t::~op_t()
case VAR_NAME:
assert(! left);
assert(name);
- delete name;
+ checked_delete(name);
break;
case ARG_INDEX:
@@ -573,14 +573,14 @@ xpath_t::op_t::~op_t()
case FUNCTOR:
assert(! left);
assert(functor);
- delete functor;
+ checked_delete(functor);
break;
#if 0
case MASK:
assert(! left);
assert(mask);
- delete mask;
+ checked_delete(mask);
break;
#endif