From f1ca61d7d7fac7a0a93daa244bf86c2ae7ebabd7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 13 Nov 2013 19:10:43 +0100 Subject: DecoderInternal: allocate PcmConvert dynamically Reduce header dependencies and allow it to be nullptr to disable it. --- src/DecoderInternal.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/DecoderInternal.cxx') diff --git a/src/DecoderInternal.cxx b/src/DecoderInternal.cxx index d4b125b29..26f91b2d9 100644 --- a/src/DecoderInternal.cxx +++ b/src/DecoderInternal.cxx @@ -20,6 +20,7 @@ #include "config.h" #include "DecoderInternal.hxx" #include "DecoderControl.hxx" +#include "pcm/PcmConvert.hxx" #include "MusicPipe.hxx" #include "MusicBuffer.hxx" #include "MusicChunk.hxx" @@ -32,6 +33,7 @@ Decoder::~Decoder() /* caller must flush the chunk */ assert(chunk == nullptr); + delete convert; delete song_tag; delete stream_tag; delete decoder_tag; -- cgit v1.2.3