Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

FreeMemAndNil

Free the heap memory pointed to by a pointer and set pointer to nil.

Declaration

Source position: sysutilh.inc line 355

procedure FreeMemAndNil(

  var p

);

Description

FreeMemAndNil will free the memory pointed to by P and will set P to Nil. Note that this function is not type safe; the programmer is responsible for ensuring that this function is called with a correct pointer parameter. Failure to do so may result in run-time errors.

See also

FreeAndNil

  

Free object if needed, and set object reference to Nil.


Documentation generated on: Nov 22 2024