Displaying 3 results from an estimated 3 matches for "insert_block_after".
2011 Jun 10
2
Memory leak using libflac++
Hi all,
I'm the author of flactag, a utility for tagging whole-album FLAC files with
embedded CUE sheets using data from the MusicBrainz servers.
I've recently run it through valgrind, and I'm seeing memory leaks like the
following:
12 bytes in 1 blocks are definitely lost in loss record 1 of 5
at 0x402377E: operator new(unsigned) (vg_replace_malloc.c:224)
by 0x41448A8:
2011 Jun 11
0
Flac-dev Digest, Vol 79, Issue 3
...- The objects returned by get_block() are yours to
>    *      modify, but changes are not reflected in the FLAC file
>    *      until you call set_block().  The objects are also
>    *      yours to delete; they are not automatically deleted
>    *      when passed to set_block() or insert_block_after().
>
> So I think it will be necessary for you to delete the object manually.
>
> Stephen
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 11 Jun 2011 11:22:28 +0000 (UTC)
> From: Andy Hawkins <andy at gently.org.uk>
> Subject: Re: [Flac-dev...
2011 Jun 11
0
Memory leak using libflac++
...er, i.e.
    *    - The objects returned by get_block() are yours to
    *      modify, but changes are not reflected in the FLAC file
    *      until you call set_block().  The objects are also
    *      yours to delete; they are not automatically deleted
    *      when passed to set_block() or insert_block_after().
So I think it will be necessary for you to delete the object manually.
Stephen