From b92b7d517b51831f77c54da88974fbaca8bd763c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 7 May 2017 15:47:51 +0200 Subject: Lazy free the nodata buffers on plugin removal. --- src/audiocache.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/audiocache.h') diff --git a/src/audiocache.h b/src/audiocache.h index 54abcf7..9c6fa53 100644 --- a/src/audiocache.h +++ b/src/audiocache.h @@ -29,6 +29,7 @@ #include #include #include +#include #include "audiotypes.h" #include "audiofile.h" @@ -106,6 +107,7 @@ private: sample_t* nodata{nullptr}; std::size_t nodata_framesize{0}; std::size_t chunk_size{0}; + std::list> nodata_dirty; AudioCacheIDManager id_manager; AudioCacheEventHandler event_handler{id_manager}; -- cgit v1.2.3