[REG2.063] Issue 10481 - out of memory error

http://d.puremagic.com/issues/show_bug.cgi?id=10481