mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
avoid pssible memleak
This commit is contained in:
@@ -142,9 +142,11 @@ fb_pixel_t* CColorGradient::gradientOneColor(fb_pixel_t col, fb_pixel_t *gradien
|
||||
start_v = max_v;
|
||||
end_v = min_v;
|
||||
break;
|
||||
default:
|
||||
default:{
|
||||
free(gradientBuf);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
int bSize1 = ((mode == gradientDark2Light2Dark) || (mode == gradientLight2Dark2Light)) ? bSize/2 : bSize;
|
||||
|
||||
|
@@ -1183,7 +1183,7 @@ void CRCInput::getMsg_us(neutrino_msg_t * msg, neutrino_msg_data_t * data, uint6
|
||||
case NeutrinoMessages::EVT_NEXTEPG:
|
||||
{
|
||||
CSectionsdClient::CurrentNextInfo *cn = (CSectionsdClient::CurrentNextInfo *) p;
|
||||
delete cn;
|
||||
delete [] cn;
|
||||
p = NULL;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user