Replace possibly dangerous FreeAndNil(PChar) with assignment to nil
IMO FreeAndNil
cannot be used on a PChar. Probably the reason why the code didn't fail, is that ar[i]
was nil anyway.
IMO FreeAndNil
cannot be used on a PChar. Probably the reason why the code didn't fail, is that ar[i]
was nil anyway.