axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
void axl_item_free ( axlItem item,
axl_bool  dealloc 

Allows to release the memory hold the item reference provided, and the value stored inside it.

itemThe item to dealloc.
deallocaxl_true to also dealloc the value inside.

References axl_free(), axl_item_get_type(), axl_node_free(), axl_pi_free(), axl_return_if_fail, ITEM_CDATA, ITEM_COMMENT, ITEM_CONTENT, ITEM_PI, and ITEM_REF.

Referenced by axl_item_remove(), and axl_item_replace().