search for: flacwrit

Displaying 1 result from an estimated 1 matches for "flacwrit".

Did you mean: flac_write
2011 Aug 11
1
Memory leak
...it() routine will create a new stream decoder (to verify the data) without deleting (or reusing) the existing one. A small program demonstrating this is pasted here: $ cat main.cc #include <cstdlib> #include <string> #include <iostream> #include <FLAC++/encoder.h> class FlacWriter : public FLAC::Encoder::File { public: inline bool dataStart(std::string const &filename); inline bool dataUpdate(char const *const data, int len); inline bool dataFinish(); }; inline bool FlacWriter::dataStart(std::string const &filename) { if (set_verify(true) && init(...