rem: for (int i = 0; i < count; i++)
add: for (int i = mGroups->CountItems(); i-- > 0;)
context: BParameterGroup::~BParameterGroup(){	if (mControls) {		int count = mControls->CountItems();		BParameter **items = reinterpret_cast<BParameter **>(mControls->Items());		for (int i = 0; i < count; i++)			delete items[i];		delete mControls;		DEBUG_ONLY(mControls = 0);	}	if (mGroups) {		int count = mGroups->CountItems();		BParameterGroup **items = reinterpret_cast<BParameterGroup **>(mGroups->Items());		for (int i = 0; i < count; i++)			delete items[i];		delete mGroups;		DEBUG_ONLY(mGroups = 0);	}	delete [] mName;	DEBUG_ONLY(mName = 0);}