Merge branch 'release-1.7'

This commit is contained in:
Lukáš Lalinský 2011-03-11 14:16:11 +01:00
commit 065fcd5077
2 changed files with 14 additions and 5 deletions

9
NEWS
View File

@ -1,5 +1,10 @@
TagLib 1.7
==========
TagLib 1.7 (Mar 11, 2011)
=========================
1.7:
* Fixed memory leaks in the FLAC file format parser.
* Fixed bitrate calculation for WAV files.
1.7 RC1:

View File

@ -65,13 +65,13 @@ public:
hasID3v2(false),
hasID3v1(false)
{
for(uint i = 0; i < blocks.size(); i++) {
delete blocks[i];
}
}
~FilePrivate()
{
for(uint i = 0; i < blocks.size(); i++) {
delete blocks[i];
}
delete properties;
}
@ -403,6 +403,7 @@ void FLAC::File::scan()
}
else {
debug("FLAC::File::scan() -- invalid picture found, discarting");
delete picture;
}
}
@ -412,6 +413,9 @@ void FLAC::File::scan()
if(block->code() != MetadataBlock::Padding) {
d->blocks.append(block);
}
else {
delete block;
}
nextBlockOffset += length + 4;