diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-20 00:35:11 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-12-23 12:59:56 +0100 |
| commit | a7f61a15fc974feaff1554bd5322650676a63c51 (patch) | |
| tree | a94f18afc7b1083bc46cb2ba901d889d6d5ccb63 /src/lib/audio_processor.h | |
| parent | 607a824efbcb0ae9d5b664e919ae983224e712a0 (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; }; |
