Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed (huge) memory leak with ASF.

  • Loading branch information...
commit 4496efe33bf5d58a402e6940160c619ac9021c4a 1 parent 3a760b0
@poiru poiru authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 taglib/asf/asffile.cpp
View
8 taglib/asf/asffile.cpp
@@ -142,11 +142,19 @@ class ASF::File::HeaderExtensionObject : public ASF::File::BaseObject
{
public:
List<ASF::File::BaseObject *> 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();
Please sign in to comment.
Something went wrong with that request. Please try again.