Symbian3/SDK/Source/GUID-2D8A7DCE-47A2-4326-BF2F-B4901F1723A0.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-2D8A7DCE-47A2-4326-BF2F-B4901F1723A0" xml:lang="en"><title>Releasing
       
    13 the instance</title><prolog><metadata><keywords/></metadata></prolog><taskbody>
       
    14 <context>       <p>When the <codeph>CHWRMVibra</codeph> instance is not required
       
    15 anymore, it must be released. If the vibration feature is still reserved to
       
    16 the client it is released when the instance is released. </p><p>The following
       
    17 code snippet demonstrates how to release the instance created by using <codeph>NewLC()</codeph>: </p><codeblock xml:space="preserve">CleanupStack::PopAndDestroy( vibra );</codeblock><p>The following code snippet demonstrates how to release the instance created
       
    18 by using <codeph>NewL()</codeph>:</p><codeblock xml:space="preserve">CVibraStatusObserver::~CVibraStatusObserver()
       
    19     {    
       
    20     delete iVibra;
       
    21     }</codeblock></context>
       
    22 </taskbody></task>