src/massDeallocator.cpp
// addMemAllocation ******
// This method adds a memory allocation to the list of mem to
// deallocate. It only adds it, doesn't ever allocate anything for
// the caller.

addMemAllocation
This method adds a memory allocation to the list of mem to
deallocate. It only adds it, doesn't ever allocate anything for
the caller.
addMemAllocation This method adds a memory allocation to the list of mem to deallocate . It only adds it doesn ' t ever allocate anything for the caller .
bool massDeallocatorClass::addMemAllocation(
	void* memory,
	MemoryType memType,
	bool oneOrMany)
{
	allocatedNodeStruct* node;
	if (!ready) return false;
	node=new allocatedNodeStruct;
	node->memory=memory;
	node->oneOrMany=oneOrMany;
	node->previousNode=NULL;
	node->memType = memType;
	node->nextNode=memoryList;
	if (node->nextNode!=NULL) node->nextNode->previousNode=node;
	memoryList=node;
	return true;
}
bool massDeallocatorClass :: addMemAllocation ( void * memory , MemoryType memType , bool oneOrMany ) { allocatedNodeStruct * node ; if ( ! ready ) return false ; node = new allocatedNodeStruct ; node -> memory = memory ; node -> oneOrMany = oneOrMany ; node -> previousNode = NULL ; node -> memType = memType ; node -> nextNode = memoryList ; if ( node -> nextNode != NULL ) node -> nextNode -> previousNode = node ; memoryList = node ; return true ; }
addMemAllocation 
This method adds a memory allocation to the list of mem to
deallocate.
addMemAllocation This method adds a memory allocation to the list of mem to deallocate .
// memory position of the memory object to add
 // that is: true for an mem obj that should be later deallocated with delete; false, with delete[]
 // it should have been initialized previously
 // create the node
 // add the node at the beginning of the linked list
 // all ok
