BUG: Fix miscellaneous memory leaks in Applications

Change-Id: Iee8fedae55ab94462f31a0a831f9044021b252ce
Merge topic 'FixApplicationsMemoryLeaks'

795ad62 BUG: Fix miscellaneous memory leaks in Applications