When the CHWRMVibra instance is not required anymore, it must be released. If the vibration feature is still reserved to the client it is released when the instance is released.
The following code snippet demonstrates how to release the instance created by using NewLC():
CleanupStack::PopAndDestroy( vibra );
The following code snippet demonstrates how to release the instance created by using NewL():
CVibraStatusObserver::~CVibraStatusObserver() { delete iVibra; }
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.