When the CHWRMLight
instance is not required
anymore, it must be released. If some target is still reserved to the client,
the target is released when the instance is released.
The following
code snippet demonstrates how to release the instance created using NewLC()
:
CleanupStack::PopAndDestroy( light );
The following code snippet demonstrates how to release the instance created
using NewL()
:
CLightStatusObserver::~CLightStatusObserver() { delete iLight; }