/* When the reference count reaches zero, the node (and any children) is deleted via mxmlDelete(). */
int mxmlRelease(mxml_node_t *node)
/* When the reference count reaches zero, the node (and any children) is deleted via mxmlDelete(). */
int mxmlRelease(mxml_node_t *node)
{
  if (node)
  {
    if ((-- node->ref_count) <= 0)
    {
      mxmlDelete(node);
      return (0);
    }
    else
      return (node->ref_count);
  }
  else
    return (-1);
}