mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
fix memleak
This commit is contained in:
@@ -308,7 +308,7 @@ int CMotorControl::exec(CMenuTarget* parent, const std::string &)
|
|||||||
default:
|
default:
|
||||||
//printf("[motorcontrol] message received...\n");
|
//printf("[motorcontrol] message received...\n");
|
||||||
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
|
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
|
||||||
delete (unsigned char*) data;
|
delete[] (unsigned char*) data;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -424,7 +424,7 @@ int CMotorControl::exec(CMenuTarget* parent, const std::string &)
|
|||||||
default:
|
default:
|
||||||
//printf("[motorcontrol] message received...\n");
|
//printf("[motorcontrol] message received...\n");
|
||||||
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
|
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
|
||||||
delete (unsigned char*) data;
|
delete[] (unsigned char*) data;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -431,7 +431,7 @@ int CScanTs::handleMsg(neutrino_msg_t msg, neutrino_msg_data_t data)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
|
if ((msg >= CRCInput::RC_WithData) && (msg < CRCInput::RC_WithData + 0x10000000))
|
||||||
delete (unsigned char*) data;
|
delete[] (unsigned char*) data;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return msg;
|
return msg;
|
||||||
|
@@ -2289,7 +2289,7 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
|
|||||||
|
|
||||||
if( res != messages_return::unhandled ) {
|
if( res != messages_return::unhandled ) {
|
||||||
if( ( msg>= CRCInput::RC_WithData ) && ( msg< CRCInput::RC_WithData+ 0x10000000 ) )
|
if( ( msg>= CRCInput::RC_WithData ) && ( msg< CRCInput::RC_WithData+ 0x10000000 ) )
|
||||||
delete (unsigned char*) data;
|
delete[] (unsigned char*) data;
|
||||||
return( res & ( 0xFFFFFFFF - messages_return::unhandled ) );
|
return( res & ( 0xFFFFFFFF - messages_return::unhandled ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2810,7 +2810,7 @@ _repeat:
|
|||||||
ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, text, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO, 0, atoi(timeout.c_str()));
|
ShowMsgUTF(LOCALE_MESSAGEBOX_INFO, text, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO, 0, atoi(timeout.c_str()));
|
||||||
|
|
||||||
}
|
}
|
||||||
delete (unsigned char*) data;
|
delete[] (unsigned char*) data;
|
||||||
return messages_return::handled;
|
return messages_return::handled;
|
||||||
}
|
}
|
||||||
else if (msg == NeutrinoMessages::EVT_RECORDING_ENDED) {
|
else if (msg == NeutrinoMessages::EVT_RECORDING_ENDED) {
|
||||||
|
Reference in New Issue
Block a user