Move the IE memory leak prevention voodoo together to after the callback, and put...