Commit e0b406f6 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

Fix three more cppcheck warnings

* src/flac/vorbiscomment.c:203: Uninitialized variable: converted.
* src/flac/vorbiscomment.c:210: Uninitialized variable: converted.
* src/test_libFLAC++/decoders.cpp:507: Memory leak: decoder.
parent d908b292
......@@ -104,7 +104,7 @@ static FLAC__bool parse_vorbis_comment_field(const char *field_ref, char **field
static FLAC__bool set_vc_field(FLAC__StreamMetadata *block, const Argument_VcField *field, FLAC__bool *needs_write, FLAC__bool raw, const char **violation)
{
FLAC__StreamMetadata_VorbisComment_Entry entry;
char *converted;
char *converted = NULL;
FLAC__ASSERT(0 != block);
FLAC__ASSERT(block->type == FLAC__METADATA_TYPE_VORBIS_COMMENT);
......
......@@ -504,6 +504,7 @@ static bool test_stream_decoder(Layer layer, bool is_ogg)
break;
default:
die_("internal error 006");
delete decoder;
return false;
}
if(init_status != ::FLAC__STREAM_DECODER_INIT_STATUS_OK)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment