BUG: Fix (more) memory leaks in RegisterUsingSlidingGeometries

Change-Id: Ie3daa46900ff32a383107b25ae84056e013f5e78
Merge topic 'AnotherRegisterUsingSlidingGeometriesMemoryLeak'

aa68057 BUG: Fix (more) memory leaks in RegisterUsingSlidingGeometries