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 &quot;BIG&quot; 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">&lt;<a href="mailto:lalinsky@gmail.com">lalinsky@gmail.com</a>&gt;</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 &lt;<a href="mailto:quadamage@gmail.com">quadamage@gmail.com</a>&gt; wrote:<br>

&gt; Hi to all.<br>
&gt; It appeals that TagLib::ASF::Tag::addAttribute has a memory leakage bug,<br>
&gt;<br>
&gt;&gt; ASF::File f( filename, false );<br>
&gt;&gt;<br>
&gt;&gt; ASF::Tag *asfTag = f.tag();<br>
&gt;&gt;<br>
&gt;&gt; ASF::Attribute atb( ByteVector( 10000000, 0 ) );<br>
&gt;&gt;<br>
&gt;&gt; asfTag-&gt;addAttribute( &quot;Test&quot;,  atb );<br>
&gt;&gt;<br>
&gt;&gt;         f.save();<br>
&gt;<br>
&gt; The above code will cause memory leakage, if you increase the size of the<br>
&gt; 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>