[PATCH] Fix memory leak related to APETag

Xavier Duret xaviour.maillists at gmail.com
Fri Jan 19 11:16:38 CET 2007


I am running valgrind on my testsuite and found some memory leaks. The
one related to APETag resulted in more than half a MB of memory loss.

diff -ruN taglib.old/taglib/mpeg/mpegfile.cpp taglib/taglib/mpeg/mpegfile.cpp
--- taglib.old/taglib/mpeg/mpegfile.cpp 2007-01-17 16:01:31.000000000 +0100
+++ taglib/taglib/mpeg/mpegfile.cpp     2007-01-18 23:44:32.000000000 +0100
@@ -187,6 +187,7 @@

   ~FilePrivate() {
     delete ID3v2Tag;
+    delete APETag;
     delete ID3v1Tag;
     delete tag;
     delete properties;


More information about the taglib-devel mailing list