Symbian3/SDK/Source/GUID-2382F758-35CF-4378-A5D5-183121E3BF6A.dita
changeset 7 51a74ef9ed63
parent 0 89d6a7a84779
equal deleted inserted replaced
6:43e37759235e 7:51a74ef9ed63
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
       
     3 <!-- This component and the accompanying materials are made available under the terms of the License 
       
     4 "Eclipse Public License v1.0" which accompanies this distribution, 
       
     5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
       
     6 <!-- Initial Contributors:
       
     7     Nokia Corporation - initial contribution.
       
     8 Contributors: 
       
     9 -->
       
    10 <!DOCTYPE task
       
    11   PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
       
    12 <task id="GUID-2382F758-35CF-4378-A5D5-183121E3BF6A" xml:lang="en"><title>Releasing
       
    13 the instance</title><prolog><metadata><keywords/></metadata></prolog><taskbody>
       
    14 <context><p>When the <codeph>CHWRMLight</codeph> instance is not required
       
    15 anymore, it must be released. If some target is still reserved to the client,
       
    16 the target is released when the instance is released.</p><p>The following
       
    17 code snippet demonstrates how to release the instance created using <codeph>NewLC()</codeph>:</p><codeblock xml:space="preserve">CleanupStack::PopAndDestroy( light );</codeblock><p>The following code snippet demonstrates how to release the instance created
       
    18 using <codeph>NewL()</codeph>: </p><codeblock xml:space="preserve">CLightStatusObserver::~CLightStatusObserver()
       
    19     {
       
    20     delete iLight;
       
    21     }</codeblock></context>
       
    22 </taskbody></task>