rem: BString *s; s=(BString*)styles->RemoveItem(0L); while(s) { delete s; s=(BString*)styles->RemoveItem(0L);
add: for (int32 i = styles->CountItems(); i-- > 0; ) { delete (BString *)styles->ItemAt(i);
context: FontListFamily::~FontListFamily(void){	BString *s;	s=(BString*)styles->RemoveItem(0L);	while(s)	{		delete s;		s=(BString*)styles->RemoveItem(0L);	}	delete styles;}