astDeleteastDelete - Delete an Object

Description:
This function deletes an ObjectObject, freeing all resources associated with it and rendering any remaining pointers to the Object invalid.

Note that deletion is unconditional, regardless of whether other pointers to the Object are still in use (possibly within other Objects). A safer approach is to defer deletion, until all references to an Object have expired, by using astBeginastBegin/astEndastEnd (together with astCloneastClone and astAnnulastAnnul if necessary).

Synopsis:
AstObject $*$astDelete( AstObject $*$this )
Parameters:
this
Pointer to the Object to be deleted.
Class Applicability:
Object
This function applies to all Objects.
Returned Value:
astDelete()
A null Object pointer (AST__NULL) is always returned.
Notes:
  • This function attempts to execute even if the AST error status is set on entry, although no further error report will be made if it subsequently fails under these circumstances.