You haven't provided any details of the error you're getting. But if you're going to delete elements from a collection as you're iterating over it, it's always a good idea to iterate backwards so that you don't end up skipping items or going past the end of the collection.
for (int ij = m_listMia.m_aCheck.GetCount() - 1; ij >= 0; ij--)
{
if(m_listMia.m_aCheck[ij])
delete m_listMia.m_aCheck[ij];
}