Correctly delete objects

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Update Changelog.txt

(Fixes issue #2040)

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>