[fpc-pascal] reference counting of multi-dimensional array
Xiangrong Fang
xrfang at gmail.com
Fri Mar 28 02:50:42 CET 2014
If I have this:
var
a2: array of array of Integer;
i, j: Integer;
begin
SetLength(a2, 3);
for i := 0 to 2 do begin
SetLength(a[i], 3);
for j := 0 to 2 do a[i][j] := 1;
end;
a2 := nil; <-- will this free all memory of a[0]...a[2]?
end;
Thanks!
Xiangrong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140328/fb958a3e/attachment.html>
More information about the fpc-pascal
mailing list