Memory leak when trying to retrieve cover art

Lukáš Lalinský lalinsky at
Fri Dec 17 23:35:02 CET 2010

On Fri, Dec 17, 2010 at 4:55 PM, Fernando Valente <fernando at> wrote:
> Hey,
> I'm using TagLib on a Mac OS X project and I'm having a big problem.
> Basically, I need to retrieve the cover art from a couple MP3 files and some
> of them do NOT have a cover art image. The problem is that when I try to get
> this information, my app crashes. The debugger points to this function:
> ByteVector AttachedPictureFrame::picture() const
> {
>   return d->data;
> }
> To be more specific, to the return d->data; line. Anyone knows a solution
> for that? My life depends on it.

The code should have no reason to crash, unless you cast a wrong
pointer (NULL, different type) to AttachedPictureFrame*. I'd need to
see some of the code to be able to help more.


More information about the taglib-devel mailing list