From: Scott Wheeler Date: Wed, 2 Feb 2005 19:04:54 +0000 (+0000) Subject: Nice catch from Gunnar Roth -- the iterator was invalid here. X-Git-Tag: v1.5~295 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1aff3947ef4e7d90d4a128a332c360ba4dba1190;p=taglib 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 --- 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)