src/massDeallocator.cpp
// genericRemoveMemAllocation *******
// This method removes a memory allocation from the internal list,
// with and without deallocating it

genericRemoveMemAllocation
This method removes a memory allocation from the internal list,
with and without deallocating it
genericRemoveMemAllocation This method removes a memory allocation from the internal list with and without deallocating it
bool massDeallocatorClass::genericRemoveMemAllocation(
	void* memory,
	bool deallocate)
{
	allocatedNodeStruct* node;
	if (!ready) return false;
	for (node=memoryList;
	node!=NULL && node->memory!=memory;
	node++);
	if (node==NULL) return false;
	if (node->previousNode==NULL) {
		memoryList=node->nextNode;
	}else{
		node->previousNode->nextNode=node->nextNode;
	}
	if (node->nextNode!=NULL) {
		node->nextNode->previousNode=node->previousNode;
	}
	if (deallocate) {
		deleteData(node->memory, node->oneOrMany, node->memType);
	}
	delete node;
	return true;
}
bool massDeallocatorClass :: genericRemoveMemAllocation ( void * memory , bool deallocate ) { allocatedNodeStruct * node ; if ( ! ready ) return false ; for ( node = memoryList ; node != NULL && node -> memory != memory ; node ++ ) ; if ( node == NULL ) return false ; if ( node -> previousNode == NULL ) { memoryList = node -> nextNode ; } else { node -> previousNode -> nextNode = node -> nextNode ; } if ( node -> nextNode != NULL ) { node -> nextNode -> previousNode = node -> previousNode ; } if ( deallocate ) { deleteData ( node -> memory , node -> oneOrMany , node -> memType ) ; } delete node ; return true ; }
genericRemoveMemAllocation 
This method removes a memory allocation from the internal list,
with and without deallocating it
genericRemoveMemAllocation This method removes a memory allocation from the internal list with and without deallocating it
// data to remove from the list
 // deallocate it at the time it's removed?
 // it should have been initialized previously
 // traverse the list looking for such mem object
 // if we didn't find it, return an error value
 // remove it from the list...
 // remove references from the previous node
 // remove references from the next node
 // deallocate it if needed
 // and deallocate the node information, always
 // all ok
