Free FExtraHeaders in TIdMessage.Destroy?

Giganews Newsgroups
Subject: Free FExtraHeaders in TIdMessage.Destroy?
Posted by:  Tor Erik Dahlsrud (nospam)
Date: Sat, 3 Apr 2010

In IdMessage.pas, class TIdMessage, shouldn't FExtraHeaders be freed in
TIdMessage.Destroy?

FastMem is reporting a memory leak of a TIdHeaderList each time I send an
email using TidSMTP and TidMessage and then free both of them
programatically.

Using Indy 10.5.7, SVN revision 4168 with Delphi 2010.

Strangely enough, in Indy 10.5.5 shipped with Delphi, this bug is fixed.

Replies