TagLib 1.7 Memory leak when saving Xiph comments in a FLAC file
David Troendle
david at troendle.org
Tue May 10 01:16:25 CEST 2011
Thanks. I can confirm that fixed the issue.
David
-----Original Message-----
From: Scott Wheeler [mailto:wheeler at kde.org]
Sent: Monday, May 09, 2011 12:09 PM
To: taglib-devel at kde.org
Subject: Re: TagLib 1.7 Memory leak when saving Xiph comments in a FLAC file
On May 9, 2011, at 6:00 PM, David Troendle wrote:
> I am a newbie encountering a memory leak when saving comments in a FLAC
file.
>
> I have distilled the problem down to the following code snippet:
>
> TagLib::FLAC::File FLACFile(<any FLAC file name>);
> TagLib::Ogg::XiphComment *FLACTags = FLACFile.xiphComment();
> FLACTags->addField("ARTIST", "New Value");
> FLACFile.save();
>
> NOTE: If the "FLACFile.save();" is omitted, only the one-time
FrameFactory and stringHandler leaks occurs. (No problem there.)
I just committed a fix for this, see:
https://github.com/taglib/taglib/commit/efeccbf72614efaed1c7282f8c9ee02a0acf
871f
(The leak was visible with valgrind as well and this cleared it up.)
Cheers,
-Scott
_______________________________________________
taglib-devel mailing list
taglib-devel at kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel
More information about the taglib-devel
mailing list