[content-capture] remove span support, fix leaks

Bug: 239080094

Test: CtsContentCaptureServiceTestCases, FrameworkCoreTests
Change-Id: Ib9ec7b48e2d907af3d7a7669178ef4853dce8de9
2 files changed