Embarcadero / octoid

Octoid is a tool for translating Objective-C headers into Delphi code. It is intended as a replacement for SDKTransform which ships with Delphi.
BSD 2-Clause "Simplified" License
30 stars 8 forks source link

Memory leak on shutdown after performing more than one transform #1

Closed DelphiWorlds closed 1 year ago

DelphiWorlds commented 1 year ago

As per title - leak result:

---------------------------
Unexpected Memory Leak
---------------------------
An unexpected memory leak has occurred. The unexpected small block leaks are:

9 - 24 bytes: UnicodeString x 57, Unknown x 15
25 - 40 bytes: TFileStream x 1, TStreamReader.TBufferedData x 1, UnicodeString x 1986, Unknown x 1
41 - 56 bytes: TTranslationUnit x 1, TIndex x 1, TCustomTranslator.Create$ActRec x 1, TSourceReader x 1, UnicodeString x 2530, Unknown x 1
57 - 72 bytes: TStreamReader x 1, UnicodeString x 1643, Unknown x 1
73 - 88 bytes: TDelphiMethods x 1, TBlockMethods x 1, TList<Neslib.Clang.TCursor> x 6, UnicodeString x 548, Unknown x 1
89 - 104 bytes: TDictionary<System.string,Neslib.Clang.TCursor> x 1, TDictionary<System.string,Octoid.CustomTranslator.TMacroInfo> x 1, TDictionary<System.string,System.string> x 2, TDictionary<Neslib.Clang.TCursor,System.Integer> x 1, TDictionary<System.string,System.Integer> x 4, UnicodeString x 224
105 - 120 bytes: UnicodeString x 391, Unknown x 1
121 - 136 bytes: TStringList x 1, UnicodeString x 248
137 - 152 bytes: UnicodeString x 4
153 - 168 bytes: UnicodeString x 2
169 - 184 bytes: UnicodeString x 80
185 - 200 bytes: UnicodeString x 132
201 - 216 bytes: Unknown x 1
233 - 248 bytes: UnicodeString x 1
265 - 280 bytes: UnicodeString x 1
281 - 296 bytes: UnicodeString x 1
313 - 344 bytes: Unknown x 1
377 - 408 bytes: Unknown x 1
441 - 472 bytes: TObjCHeaderTranslator x 1
569 - 616 bytes: Unknown x 1
1369 - 1496 bytes: Unknown x 1
1497 - 1640 bytes: Unknown x 1

The sizes of unexpected leaked medium and large blocks are: 8232, 3112, 5672, 12328, 983000

---------------------------
OK   
---------------------------
DelphiWorlds commented 1 year ago

Fixed