TODO - The Windows Geschischte

Lukáš Lalinský lalinsky at gmail.com
Thu Jul 20 17:58:03 CEST 2006


Sebastian Pipping wrote:
> there is another thing about this name variable:
> FilePrivate is constructed from astring that was allocated somewhere
> outside but frees it in the destructor using "free". This causes
> trouble at least when the original memory was allocated using
> "new char[..]". I remember a rule of thumb to never mix
> new/free and malloc/delete. I think working with a copy would be
> a good way to solve this.

It already works with a copy. The string is allocated in File::File by strdup.



More information about the taglib-devel mailing list