Releasing the instance of Extended Light API

When the CHWRMExtendedLight 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 by using NewLC():

CleanupStack::PopAndDestroy( light );

The following code snippet demonstrates how to release the instance created by using NewL():

CNewApp::~CNewApp()
    {
    delete iLight;
    }