Take ownership of embedded frames, as documented

Previously embedded frames that were created automatically were
never deleted.

Fixes #440
This commit is contained in:
Scott Wheeler
2014-09-18 16:23:28 +02:00
parent 8ea07be47e
commit 82315276db
3 changed files with 25 additions and 15 deletions

View File

@ -36,6 +36,11 @@ using namespace ID3v2;
class ChapterFrame::ChapterFramePrivate
{
public:
ChapterFramePrivate()
{
embeddedFrameList.setAutoDelete(true);
}
ByteVector elementID;
uint startTime;
uint endTime;

View File

@ -35,6 +35,11 @@ using namespace ID3v2;
class TableOfContentsFrame::TableOfContentsFramePrivate
{
public:
TableOfContentsFramePrivate()
{
embeddedFrameList.setAutoDelete(true);
}
ByteVector elementID;
bool isTopLevel;
bool isOrdered;