rem: media_addon_id id; for (int32 index = 0; filemap->GetAt(index,&id); index++) _DormantNodeManager->UnregisterAddon(id);
add: media_addon_id *id; for (filemap->Rewind(); filemap->GetNext(&id); ) _DormantNodeManager->UnregisterAddon(*id);
context: MediaAddonServer::~MediaAddonServer(){	delete_port(control_port);	status_t err;	wait_for_thread(control_thread,&err);	// unregister all media add-ons	media_addon_id id;	for (int32 index = 0; filemap->GetAt(index,&id); index++)		_DormantNodeManager->UnregisterAddon(id);		delete filemap;	delete flavorcountmap;}