From 9c1668f28b3cf764bbb86a1ea261db6416b5e1f8 Mon Sep 17 00:00:00 2001 From: Birunthan Mohnathas Date: Mon, 12 Mar 2012 18:44:08 +0200 Subject: [PATCH 1/2] Fixed (huge) memory leak with ASF. --- taglib/asf/asffile.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/taglib/asf/asffile.cpp b/taglib/asf/asffile.cpp index e39f856f..fbde6fa1 100644 --- a/taglib/asf/asffile.cpp +++ b/taglib/asf/asffile.cpp @@ -141,11 +141,19 @@ class ASF::File::HeaderExtensionObject : public ASF::File::BaseObject { public: List objects; + ~HeaderExtensionObject(); ByteVector guid(); void parse(ASF::File *file, uint size); ByteVector render(ASF::File *file); }; +ASF::File::HeaderExtensionObject::~HeaderExtensionObject() +{ + for(unsigned int i = 0; i < objects.size(); i++) { + delete objects[i]; + } +} + void ASF::File::BaseObject::parse(ASF::File *file, unsigned int size) { data.clear(); From 009c43952f854bf3c086ca844c233c13189d4ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Lalinsk=C3=BD?= Date: Sat, 17 Mar 2012 10:58:22 +0100 Subject: [PATCH 2/2] Changelog --- NEWS | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/NEWS b/NEWS index 71a84c7f..55a5b7e3 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,13 @@ +TagLib 1.7.1 (Mar 17, 2012) +=========================== + + * Improved parsing of corrupted WMA, RIFF and OGG files. + * Fixed a memory leak in the WMA parser. + * Fixed a memory leak in the FLAC parser. + * Fixed a possible division by zero in the APE parser. + * Added detection of TTA2 files. + * Fixed saving of multiple identically named tags to Vorbis Comments. + TagLib 1.7 (Mar 11, 2011) =========================