CRT Documentation: Reference

FreeCrtState

[This function does not have a corresponding DOS function.]

Disposes of memory allocated by a call to SaveCrtState.

function FreeCrtState(
  var SaveState: pointer
): boolean;

Parameters

SaveState
[in, out] Pointer previously allocated using SaveCrtState that is to be freed.

Return Values

True if successful, False on failure.

Remarks

This function frees the memory allocated from a previous call to SaveCrtState. You do not need to free the pointer if you restored the state by calling RestoreCrtState, as the memory is also freed when the state is restored.

See Also

Crt Overview, SaveCrtState, RestoreCrtState