Previous commit removed the clearning of the list, and didn't remove items from the list in the loop (-> double delete, and infinite loop) CCBUG: 308293 (cherry picked from commit 98819f62)