Author : Olivier Langlois I have fixed a memory leak in the function bool csIniFile::Load (bool (*ReadLine) (csSome Stream, void *data, size_t size), csSome Stream) I have modified this loop: for (int i = 0; i < Comments->Length (); i++) Root.Push ((*Comments)[i]); by while( Comments->Length () ) Root.Push (Comments->Pop()); because otherwise when Comments is deleted, its destructor deletes some objects referenced in the Root object.