From 4ae2229a1f15b73f82357a4dc6c7c26634f10f07 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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/c5c3b0109a1384d8e851629421e5ccc9cc2fc6bc Author: [CST] Focus Date: 2012-05-06 (Sun, 06 May 2012) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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();