diff options
author | Max Kellermann <max@duempel.org> | 2013-11-13 19:10:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-11-13 19:16:31 +0100 |
commit | f1ca61d7d7fac7a0a93daa244bf86c2ae7ebabd7 (patch) | |
tree | 974778506726772914bf9fa64b18f533a557ecd5 /src/DecoderInternal.cxx | |
parent | a80b5cf19b8d2dda6db15444cd11aa9494546380 (diff) | |
download | mpd-f1ca61d7d7fac7a0a93daa244bf86c2ae7ebabd7.tar.gz mpd-f1ca61d7d7fac7a0a93daa244bf86c2ae7ebabd7.tar.xz mpd-f1ca61d7d7fac7a0a93daa244bf86c2ae7ebabd7.zip |
DecoderInternal: allocate PcmConvert dynamically
Reduce header dependencies and allow it to be nullptr to disable it.
Diffstat (limited to 'src/DecoderInternal.cxx')
-rw-r--r-- | src/DecoderInternal.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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; |