File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030#include " tbytevectorlist.h"
3131#include " tdebug.h"
3232#include " tpropertymap.h"
33+ #include " unknownframe.h"
3334
3435using namespace TagLib ;
3536using namespace ID3v2 ;
@@ -259,7 +260,7 @@ void ChapterFrame::parseFields(const ByteVector &data)
259260 return ;
260261
261262 // Checks to make sure that frame parsed correctly.
262- if (frame->size () <= 0 ) {
263+ if (frame->size () <= 0 || dynamic_cast <UnknownFrame *>(frame) ) {
263264 delete frame;
264265 return ;
265266 }
Original file line number Diff line number Diff line change 2929
3030#include " tpropertymap.h"
3131#include " tdebug.h"
32+ #include " unknownframe.h"
3233
3334using namespace TagLib ;
3435using namespace ID3v2 ;
@@ -269,7 +270,7 @@ void TableOfContentsFrame::parseFields(const ByteVector &data)
269270 return ;
270271
271272 // Checks to make sure that frame parsed correctly.
272- if (frame->size () <= 0 ) {
273+ if (frame->size () <= 0 || dynamic_cast <UnknownFrame *>(frame) ) {
273274 delete frame;
274275 return ;
275276 }
You can’t perform that action at this time.
0 commit comments