diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-2382F758-35CF-4378-A5D5-183121E3BF6A.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-2382F758-35CF-4378-A5D5-183121E3BF6A.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,22 @@ + + + + + +Releasing +the instance +

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; + }
+
\ No newline at end of file