Destroys the NITF file handle, and releases all resources associated with it.
#include "ltntf.h"
L_LTNTF_API L_INT L_NITFDestroy(phNitf)
Pointer to a handle to an existing NITF file, created by calling the L_NITFCreate function.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
A NITF file is created by calling the L_NITFCreate function.
For each call to L_NITFCreate there must be a call to L_NITFDestroy.
This function should be the called after calling any other L_NITFXXX function. It will clean up and free memory allocated to the NITF file handle.
For an example, refer to L_NITFCreate.