mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
fix memleak
This commit is contained in:
@@ -308,7 +308,7 @@ int CMotorControl::exec(CMenuTarget* parent, const std::string &)
|
||||
default:
|
||||
//printf("[motorcontrol] message received...\n");
|
||||
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
|
||||
delete (unsigned char*) data;
|
||||
delete[] (unsigned char*) data;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -424,7 +424,7 @@ int CMotorControl::exec(CMenuTarget* parent, const std::string &)
|
||||
default:
|
||||
//printf("[motorcontrol] message received...\n");
|
||||
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
|
||||
delete (unsigned char*) data;
|
||||
delete[] (unsigned char*) data;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user