From 55c72869e3bf9c805cdef522aa4e18c19c079cba 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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/14783a75818f4523205b36cbf0203fc38b0face8 Author: Stefan Seyfried Date: 2013-04-06 (Sat, 06 Apr 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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 63474622a..3135a2492 100644 --- a/src/gui/scan.cpp +++ b/src/gui/scan.cpp @@ -79,6 +79,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 a9e97f688..2df4d565d 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); };