- fixed problems deallocation sicsobjects

This commit is contained in:
zolliker
2009-02-25 14:50:00 +00:00
parent 1914d04420
commit 4b82f13ab1
7 changed files with 47 additions and 48 deletions

View File

@@ -113,7 +113,7 @@ void RecurseCallbackChains(pHdb node, pHdbMessage message)
/*-----------------------------------------------------------------------*/
void DeleteNodeData(pHdb node)
{
pHdb tmp = NULL;
pHdb tmp = NULL, next = NULL;
if (node == NULL) {
return;
@@ -132,8 +132,9 @@ void DeleteNodeData(pHdb node)
while (node->child != NULL) {
tmp = node->child;
node->child = node->child->next;
next = node->child->next;
DeleteNodeData(tmp);
node->child = next;
}
free(node);
}