From bd2711937d9a4d8e8b63db1ccbc8f3633323da6d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Mon, 18 Nov 2019 10:58:09 +0100 Subject: Fix StatsPublisher socket leak --- src/StatsPublish.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/StatsPublish.h') diff --git a/src/StatsPublish.h b/src/StatsPublish.h index f593c7c..7ff7da4 100644 --- a/src/StatsPublish.h +++ b/src/StatsPublish.h @@ -34,6 +34,9 @@ class StatsPublisher { public: StatsPublisher(const std::string& socket_path); + StatsPublisher(const StatsPublisher& other) = delete; + StatsPublisher& operator=(const StatsPublisher& other) = delete; + ~StatsPublisher(); /*! Update peak audio level information */ void update_audio_levels(int16_t audiolevel_left, int16_t audiolevel_right); -- cgit v1.2.3