[fpc-pascal] why dynamic array created in constructor not automatically free in destructor
dennis at avidsoft.com.hk
Thu Aug 7 10:21:19 CEST 2014
I have a class like;
ar : array of integer;
ar := nil;//<--- this is needed otherwise a memory leak is reported!
I would expect the compiler would automatically insert this ar := nil on
my behalf because it seems like it does it for strings.
Am I missing some compiler directives?
More information about the fpc-pascal