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/cinema_sound_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/cinema_sound_processor.h')
| -rw-r--r-- | src/lib/cinema_sound_processor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/cinema_sound_processor.h b/src/lib/cinema_sound_processor.h index ef003da2a..3ccaa5c9b 100644 --- a/src/lib/cinema_sound_processor.h +++ b/src/lib/cinema_sound_processor.h @@ -29,6 +29,7 @@ #include <boost/utility.hpp> +#include <memory> #include <string> #include <vector> @@ -64,7 +65,6 @@ public: static void setup_cinema_sound_processors (); static CinemaSoundProcessor const * from_id (std::string id); static CinemaSoundProcessor const * from_index (int); - static int as_index (CinemaSoundProcessor const *); private: /** id for our use */ @@ -75,8 +75,8 @@ private: float _below; float _above; - /** sll available cinema sound processors */ - static std::vector<CinemaSoundProcessor const *> _cinema_sound_processors; + /** all available cinema sound processors */ + static std::vector<std::unique_ptr<const CinemaSoundProcessor>> _cinema_sound_processors; }; |
