fix a potential memory leak by adding onDestroy in case settings is killed

Change-Id: Ie5f53969d583a898739caeec49b972c5e1cb69d9
Fix WifiManager melory leak, change context to getApplicationContext

Change-Id: Iba90045c4e31537defeec7a6f965d3b764065864
Signed-off-by: annieyu <annieyu@huaqin.com>
Settings: Fix the memory leak in Settings

Fixed the memory leak in both InstalledAppDetails

Change-Id: I3520b3c1fe1bf98e3baec2ee989eb215164a7cf2
Signed-off-by: Zhijun Peng <pengzhj@marvell.com>
Remove unused DebugIntentSender

Bug: 12722251
Change-Id: Idb5f7e2fcf4da6826c9fcb2499af9cf9c189dfeb
(cherry picked from commit 26430486e4082c89e31a9489e4309566bda2fec8)
Fix memory leak in ManageApplication

ApplicationsAdapter new a Session member and make it has a reference to
it self. If we don't release it explicitly, the cross reference will
cause memory leak.

Change-Id: Iecce35ae1d56d98cee6347e84d3a3ff57f3b15a5