EMI: Avoid deleting pool objects while iterating
Merge pull request #785 from inguin/emi-text-stack

EMI: Avoid deleting pool objects while iterating