BUG: Fix some memory leaks in AtlasBuilderUsingIntensity

Change-Id: I1f56ac8dc8422a768356e12795c4331a735c8261
Merge topic 'AtlasBuilderUsingIntensityMemoryLeak'

cbcef51 BUG: Fix some memory leaks in AtlasBuilderUsingIntensity