BUG: Fix memory leak in TubesToDensityImage

Change-Id: I8a8913d0f058935bf8d4464443a4a90c4aab2bfd
Merge topic 'TubesToDensityImageMemoryLeak'

0c08421 BUG: Fix memory leak in TubesToDensityImage