BTreeData::~BTreeData ()
{
- if (clave)
+ if (clave) {
delete clave;
+ clave = NULL;
+ }
}
uint BTreeData::Size () const
if (anterior == NULL) return false;
ClaveVariable *c = (ClaveVariable *)clave;
- return c->Abrev (dynamic_cast<ClaveVariable *>(anterior->getClave ()));
+ return c->Abrev (dynamic_cast<ClaveVariable *>(anterior->GetKey ()));
}
bool BTreeData::DesAbrev (BTreeData *anterior)
if (anterior == NULL) return false;
ClaveVariable *c = (ClaveVariable *)clave;
- return c->DesAbrev (dynamic_cast<ClaveVariable *>(anterior->getClave ()));
+ return c->DesAbrev (dynamic_cast<ClaveVariable *>(anterior->GetKey ()));
}
BTreeLeafData::BTreeLeafData (uchar *node, int key_type)
BTreeLeafData::~BTreeLeafData ()
{
+ if (clave) {
+ delete clave;
+ clave = NULL;
+ }
}
uint BTreeLeafData::Size () const