How to use A3DRiRepresentialItemDeepCopy

How do I release the cloned A3DRiRepresentialItem after deep cloning using the A3DRiRepresentialItemDeepCopy function? Should I use the A3DEntityDelete function? Is it okay like this? Do you have any usage examples
A3DRiRepresentationItem* ppNewRi = NULL;
A3DStatus status = A3DRiRepresentationItemDeepCopy(pRI, &ppNewRi);
if (status == A3D_SUCCESS) {
//. …
A3DEntityDelete(ppNewRi);
}

Hello,
A3DRiRepresentionlItemDeepCopy creates a copy of the given representation item, and the pointer is kept internally to be freed later in by garbage collector system. You can call A3DEntityDelete() when the entity is no longer used in any assemblies, or just ignore it if memory is not a problem in your context.
Regards