_addToCleanup was declared twice.
Merge pull request #1 from Krycek-dk/master

_addToCleanup was declared twice.