From c5c3b0109a1384d8e851629421e5ccc9cc2fc6bc Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Sun, 6 May 2012 15:50:41 +0400 Subject: [PATCH] gui/motorcontrol.cpp: fix memleak - delete sig/snr scale in dtor --- src/gui/motorcontrol.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/motorcontrol.cpp b/src/gui/motorcontrol.cpp index 4df5d3506..6334a1946 100644 --- a/src/gui/motorcontrol.cpp +++ b/src/gui/motorcontrol.cpp @@ -72,8 +72,11 @@ CMotorControl::CMotorControl(int tnum) CMotorControl::~CMotorControl() { -printf("CMotorControl::~CMotorControl\n"); + printf("CMotorControl::~CMotorControl\n"); + delete sigscale; + delete snrscale; } + void CMotorControl::Init(void) { frameBuffer = CFrameBuffer::getInstance();