Releasing the instance

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;
    }