ClosePort
ClosePort Release memory used by an open GrafPort
#include <Quickdraw.h> Quickdraw
void ClosePort(whichPort );
GrafPtr whichPort ; pointer to a GrafPort structure
ClosePort releases memory used in the visRgn and clipRgn of a GrafPort and
deactivates the port.
whichPort is is a pointer to a 108-byte GrafPort structure.
Returns: none

Notes: ClosePort is seldom used since the Window Manager CloseWindow and
DisposeWindow functions do it automatically.
If you used NewPtr to allocate memory for the GrafPort itself, you are
responsible for deallocating it, e.g.:
ClosePort( whichPort );
DisposPtr( (Ptr) whichPort );
Be sure to close the port before disposing of the memory occupied by the
GrafPort structure. Otherwise, the visRgn and clipRgn memory cannot be
recovered.