gui/motorcontrol.cpp: fix memleak - delete sig/snr scale in dtor

This commit is contained in:
[CST] Focus
2012-05-06 15:50:41 +04:00
parent 2a00f4fafb
commit c5c3b0109a

View File

@@ -73,7 +73,10 @@ CMotorControl::CMotorControl(int tnum)
CMotorControl::~CMotorControl() CMotorControl::~CMotorControl()
{ {
printf("CMotorControl::~CMotorControl\n"); printf("CMotorControl::~CMotorControl\n");
delete sigscale;
delete snrscale;
} }
void CMotorControl::Init(void) void CMotorControl::Init(void)
{ {
frameBuffer = CFrameBuffer::getInstance(); frameBuffer = CFrameBuffer::getInstance();