1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 08:15:17 +03:00

cppcheck experiment. A couple of memory leaks fixed

This commit is contained in:
bsongis 2014-02-26 16:09:45 +01:00
parent 33091c295f
commit 86c0678273
13 changed files with 35 additions and 41 deletions

View file

@ -1050,7 +1050,7 @@ void RegisterFirmwares()
RegisterEepromInterfaces();
}
bool LoadEeprom(RadioData &radioData, uint8_t *eeprom, int size)
bool LoadEeprom(RadioData &radioData, const uint8_t *eeprom, const int size)
{
foreach(EEPROMInterface *eepromInterface, eepromInterfaces) {
if (eepromInterface->load(radioData, eeprom, size))