diff --git a/src/test_libFLAC++/decoders.cpp b/src/test_libFLAC++/decoders.cpp index b1505eeb..a937f1fc 100644 --- a/src/test_libFLAC++/decoders.cpp +++ b/src/test_libFLAC++/decoders.cpp @@ -459,6 +459,7 @@ static bool test_stream_decoder(Layer layer, bool is_ogg) printf("testing is_valid()... "); if(!decoder->is_valid()) { printf("FAILED, returned false\n"); + delete decoder; return false; } printf("OK\n"); @@ -481,6 +482,7 @@ static bool test_stream_decoder(Layer layer, bool is_ogg) printf("testing is_valid()... "); if(!decoder->is_valid()) { printf("FAILED, returned false\n"); + delete decoder; return false; } printf("OK\n"); @@ -532,6 +534,7 @@ static bool test_stream_decoder(Layer layer, bool is_ogg) printf("testing is_valid()... "); if(!decoder->is_valid()) { printf("FAILED, returned false\n"); + delete decoder; return false; } printf("OK\n"); diff --git a/src/test_libFLAC++/encoders.cpp b/src/test_libFLAC++/encoders.cpp index e328a534..3fe0bb38 100644 --- a/src/test_libFLAC++/encoders.cpp +++ b/src/test_libFLAC++/encoders.cpp @@ -215,6 +215,7 @@ static bool test_stream_encoder(Layer layer, bool is_ogg) printf("testing is_valid()... "); if(!encoder->is_valid()) { printf("FAILED, returned false\n"); + delete decoder; return false; } printf("OK\n");