Version: 1.6.3 OS: All The constructor AttachedPictureFrameV22::AttachedPictureFrameV22(const ByteVector &data, Header *h) allocates a new object d = new AttachedPictureFramePrivate; overwriting the previosuly allocated one (by AttachedPictureFrame::AttachedPictureFrame() : Frame("APIC")) thus leaking memory. It then goes on to call setHeader(newHeader, false); which does not deallocate the previously set header, leaking memory again. Reproducible: Always
SVN commit 1212871 by lalinsky: Fix memory leak in AttachedPictureFrameV22 BUG:257007 M +1 -3 attachedpictureframe.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1212871