+5
Planned

Warning request: Calling FreeAndNil on an interfaced type

David Millington 10 years ago updated by Roman 10 years ago 1
var
List : IList<Integer>; // A Spring4D list
...
FreeAndNil(List); // <- bam!

It shouldn't be possible to call Free since you can only call methods defined in an interface on an interfaced type, but FreeAndNil doesn't have any checking and will compile happily with the above code.