[REG2.061] Issue 10789 - Struct destructor erroneously called

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