From 1aff3947ef4e7d90d4a128a332c360ba4dba1190 Mon Sep 17 00:00:00 2001 From: Scott Wheeler Date: Wed, 2 Feb 2005 19:04:54 +0000 Subject: [PATCH] Nice catch from Gunnar Roth -- the iterator was invalid here. BUG:94662 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@385470 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- mpeg/id3v2/id3v2tag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpeg/id3v2/id3v2tag.cpp b/mpeg/id3v2/id3v2tag.cpp index 00249b81..3daa1515 100644 --- a/mpeg/id3v2/id3v2tag.cpp +++ b/mpeg/id3v2/id3v2tag.cpp @@ -320,7 +320,7 @@ void ID3v2::Tag::removeFrame(Frame *frame, bool del) // ...and delete as desired if(del) - delete *it; + delete frame; } void ID3v2::Tag::removeFrames(const ByteVector &id)