Cleanup utilities
The Cleanup utility functions support four types of clean up operation.
Cleanup for heap arrays
C++ arrays are allocated on the heap and require their own particular cleanup.
How to use CleanupDeletePushL() CleanupDeletePushL() pushes a TCleanupItem onto the cleanup stack ready for CleanupStack::PopAndDestroy() to delete.
How to use CleanupClosePushL()
The CleanupClosePushL() templated function constructs and pushes a TCleanupItem onto the cleanup stack.
How to use CleanupReleasePushL() CleanupReleasePushL() pushes a TCleanupItem onto the cleanup stack ready for CleanupStack::PopAndDestroy() to release.