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/ratio.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/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; }; |
