Fixed object leak introduced in last commit (3fc24d9)