Re: [fpc-pascal] Memory leak in GetEnumerator

2013-12-27 Thread Xiangrong Fang
You are right, the bug is fixed, and another bug in the GetEnumerator are also found and fixed. This is my first time using heaptrc. Thanks a lot. 2013/12/27 Jeppe Græsdal Johansen > Den 27-12-2013 10:16, Xiangrong Fang skrev: > > Hi All, > > I used HeapTrc on my TTreap class: > > https:/

Re: [fpc-pascal] Memory leak in GetEnumerator

2013-12-27 Thread Jeppe Græsdal Johansen
Den 27-12-2013 10:16, Xiangrong Fang skrev: Hi All, I used HeapTrc on my TTreap class: https://github.com/xrfang/fpcollection/blob/master/src/units/treap.pas It reported memory leak in the following procedure: function TTreap.GetEnumerator: TTreap; begin Result := TTreap.Create; //<-- memory

[fpc-pascal] Memory leak in GetEnumerator

2013-12-27 Thread Xiangrong Fang
Hi All, I used HeapTrc on my TTreap class: https://github.com/xrfang/fpcollection/blob/master/src/units/treap.pas It reported memory leak in the following procedure: function TTreap.GetEnumerator: TTreap; begin Result := TTreap.Create; //<-- memory leak here Result.ProxyFor := Self; ...