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/ratio.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/ratio.h')
| -rw-r--r-- | src/lib/ratio.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/ratio.h b/src/lib/ratio.h index 016a22edc..31ff09358 100644 --- a/src/lib/ratio.h +++ b/src/lib/ratio.h @@ -42,9 +42,6 @@ public: , _isdcf_name (d) {} - Ratio (Ratio const&) = delete; - Ratio& operator= (Ratio const&) = delete; - std::string id () const { return _id; } @@ -72,9 +69,7 @@ public: static Ratio const * from_ratio (float r); static Ratio const * nearest_from_ratio (float r); - static std::vector<Ratio const *> all () { - return _ratios; - } + static std::vector<Ratio const *> all (); static std::vector<Ratio const *> containers (); @@ -88,7 +83,7 @@ private: boost::optional<std::string> _container_nickname; std::string _isdcf_name; - static std::vector<Ratio const *> _ratios; + static std::vector<Ratio> _ratios; }; |
