Memory leaks in Generics.Collections.THashSet
I accidentally discovered that calling any THashSet method of the four:
- UnionWith()
- IntersectWith()
- ExceptWith()
- SymmetricExceptWith()
leads to memory leaks (see test.pas).
The attached patch seems to fix the situation.
The same seems to be observed in TSortedHashSet, so a new patch has been added.
test.pashashset.patch gencoll.patch
OMG, in TSortedSet everything seems to be the same.
Edited by avk959