omadrm/drmplugins/drmrohandler/src/CRoHandler.cpp
changeset 84 b09186059647
parent 52 d752ced89971
equal deleted inserted replaced
82:a117e284a2c6 84:b09186059647
   306 // Does RPointerArray< >->ResetAndDestroy() for the given array aPtr.
   306 // Does RPointerArray< >->ResetAndDestroy() for the given array aPtr.
   307 // ----------------------------------------------------------------------------
   307 // ----------------------------------------------------------------------------
   308 //
   308 //
   309 LOCAL_C void DoResetAndDestroy( TAny* aPtr )
   309 LOCAL_C void DoResetAndDestroy( TAny* aPtr )
   310     {
   310     {
   311     ( reinterpret_cast< RPointerArray< CDRMRights >* >( aPtr ) )->ResetAndDestroy();
   311     RPointerArray< CDRMRights >* arr = reinterpret_cast< RPointerArray< CDRMRights >* >( aPtr );
   312     delete aPtr;
   312     arr->ResetAndDestroy();
   313     aPtr = NULL;
   313     delete arr;
       
   314     arr = NULL;
   314     }
   315     }
   315 
   316 
   316 // ----------------------------------------------------------------------------
   317 // ----------------------------------------------------------------------------
   317 // LeaveIfNullL
   318 // LeaveIfNullL
   318 // Leaves with given error or with KErrArgument if aBuf is null
   319 // Leaves with given error or with KErrArgument if aBuf is null