Merge pull request #647 from WalterBright/fix11344

fix Issue 11344 - Error: object.destroy called with argument types matches both