From c0a1b8690fec0beae870c35ad61850fe4e8b3f9f Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 6 Apr 2013 16:59:13 +0200 Subject: [PATCH] CScanTs: add destructor to avoid leaks --- src/gui/scan.cpp | 6 ++++++ src/gui/scan.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/gui/scan.cpp b/src/gui/scan.cpp index 28838244c..a3e85b090 100644 --- a/src/gui/scan.cpp +++ b/src/gui/scan.cpp @@ -88,6 +88,12 @@ CScanTs::CScanTs() snrscale->setBlink(); } +CScanTs::~CScanTs() +{ + delete sigscale; + delete snrscale; +} + void CScanTs::prev_next_TP( bool up) { t_satellite_position position = 0; diff --git a/src/gui/scan.h b/src/gui/scan.h index 4464f6441..f35a73092 100644 --- a/src/gui/scan.h +++ b/src/gui/scan.h @@ -83,6 +83,7 @@ class CScanTs : public CMenuTarget public: CScanTs(); + ~CScanTs(); void hide(); int exec(CMenuTarget* parent, const std::string & actionKey); };