diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-20 00:35:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-29 00:45:40 +0200 |
| commit | 78ca79cde19db630b1abfe8f00f49e87bb7e4068 (patch) | |
| tree | 162e17e2413e57e10cf841212c5d29b9ff97b400 /src/lib/audio_processor.h | |
| parent | f25061b8a6f35e490b731caefe63560045b10a1f (diff) | |
Fix a load of stuff that wasn't being freed on close.
Nothing really that important, but it cleans up the valgrind
leak check reports.
Diffstat (limited to 'src/lib/audio_processor.h')
| -rw-r--r-- | src/lib/audio_processor.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/audio_processor.h b/src/lib/audio_processor.h index ca80c92b2..e24506acd 100644 --- a/src/lib/audio_processor.h +++ b/src/lib/audio_processor.h @@ -29,7 +29,7 @@ #include "types.h" -#include <list> +#include <memory> #include <string> #include <vector> @@ -65,14 +65,14 @@ public: /** @return the user-visible (translated) names of each of our inputs, in order */ virtual std::vector<NamedChannel> input_names () const = 0; - static std::list<AudioProcessor const *> all (); - static std::list<AudioProcessor const *> visible (); + static std::vector<AudioProcessor const *> all (); + static std::vector<AudioProcessor const *> visible (); static void setup_audio_processors (); static AudioProcessor const * from_id (std::string); private: - static std::list<AudioProcessor const *> _all; - static std::list<AudioProcessor const *> _non_experimental; + static std::vector<std::unique_ptr<const AudioProcessor>> _experimental; + static std::vector<std::unique_ptr<const AudioProcessor>> _non_experimental; }; |
