From 5371fd6c90da799e0c44edd28467606a904124d0 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 Conflicts: src/gui/scan.h --- 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 ca82c0a51..8d7fd37ba 100644 --- a/src/gui/scan.cpp +++ b/src/gui/scan.cpp @@ -86,6 +86,12 @@ CScanTs::CScanTs(int dtype) deltype = dtype; } +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 9a1d32cad..3e820d28c 100644 --- a/src/gui/scan.h +++ b/src/gui/scan.h @@ -85,6 +85,7 @@ class CScanTs : public CMenuTarget public: CScanTs(int dtype = FE_QPSK); + ~CScanTs(); void hide(); int exec(CMenuTarget* parent, const std::string & actionKey); };