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; }
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.