library/src/decoders/HTML/BP-HTMLDeconstructors.cc
// destroys the properties list internal to a form element (not input based at all, 100% form)
destroys the properties list internal to a form element (not input based at all, 100% form)
destroys the properties list internal to a form element ( not input based at all 100% form )
int HTMLDestroyFormPropertiesList(P_BP_HTML_FORM_PROPERTY_LIST inList, P_BP_HTML_FULL_EXTRACTION extraction){
	if(!inList)
		return ERR_FAILURE;
	if(!inList->first)
		return ERR_FAILURE;
	if(!extraction)
		return ERR_FAILURE;
	for
	(
		inList = inList->first;
		inList;
	)
	{
		if(inList->name)
		{
			tq_free(extraction->tq, inList->name);
			inList->name = NULL;
		}
		if(inList->content)
		{
			tq_free(extraction->tq, inList->content);
			inList->content = NULL;
		}
		if(!inList->next)
		{
			tq_free(extraction->tq, inList);
			inList = NULL;
			break;
		}
		else
		{
			inList = inList->next;
			if(inList->prev != NULL)
				tq_free(extraction->tq, inList->prev);
		}
	}
	return ERR_SUCCESS;
}
int HTMLDestroyFormPropertiesList ( P_BP_HTML_FORM_PROPERTY_LIST inList , P_BP_HTML_FULL_EXTRACTION extraction ) { if ( ! inList ) return ERR_FAILURE ; if ( ! inList -> first ) return ERR_FAILURE ; if ( ! extraction ) return ERR_FAILURE ; for ( inList = inList -> first ; inList ; ) { if ( inList -> name ) { tq_free ( extraction -> tq , inList -> name ) ; inList -> name = NULL ; } if ( inList -> content ) { tq_free ( extraction -> tq , inList -> content ) ; inList -> content = NULL ; } if ( ! inList -> next ) { tq_free ( extraction -> tq , inList ) ; inList = NULL ; break ; } else { inList = inList -> next ; if ( inList -> prev != NULL ) tq_free ( extraction -> tq , inList -> prev ) ; } } return ERR_SUCCESS ; }
destroys the properties list internal to a form element (not input based at all, 100% form)
destroys the properties list internal to a form element ( not input based at all 100% form )
// ensure we have an inlist // ensure we have an extraction // deconstruct list // destroy allocated name buffer // destroy allocated content buffer // List Element Deconstruction Logic // since we're at the last element, free and exit loop // move to next pointer // return indicating success