Hello.<br><br>The memory leakage occurred only when my application wrote asf tag, the tagreader works normally.<br><br>When I write some text attributes, the memory usage is stable, however when I add some "BIG" size album art attributes(e.g from some pictures whose size is over 1MB), it increased significantly.<br>
<br>I think the bug always exists, but only noticeable when you add some big attributes.<br><br><div class="gmail_quote">2010/10/7 Lukáš Lalinský <span dir="ltr"><<a href="mailto:lalinsky@gmail.com">lalinsky@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">On Thu, Oct 7, 2010 at 8:32 AM, Anthony Liu <<a href="mailto:quadamage@gmail.com">quadamage@gmail.com</a>> wrote:<br>
> Hi to all.<br>
> It appeals that TagLib::ASF::Tag::addAttribute has a memory leakage bug,<br>
><br>
>> ASF::File f( filename, false );<br>
>><br>
>> ASF::Tag *asfTag = f.tag();<br>
>><br>
>> ASF::Attribute atb( ByteVector( 10000000, 0 ) );<br>
>><br>
>> asfTag->addAttribute( "Test", atb );<br>
>><br>
>> f.save();<br>
><br>
> The above code will cause memory leakage, if you increase the size of the<br>
> asf attribute, things get even worst.<br>
<br>
</div></div>Can you please be more specific? Valgrind on examples/tagreader<br>
reports no real memory leaks when running on a WMA file. Everything in<br>
ASF::Attribute is reference-counted, it will get deleted when the last<br>
instance runs out of context.<br>
<br>
Lukas<br>
_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards<br>