mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
fix possible memleak
This commit is contained in:
@@ -1344,6 +1344,9 @@ void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *urltag, c
|
|||||||
element = xmlNextNode(element);
|
element = xmlNextNode(element);
|
||||||
g_RCInput->getMsg(&msg, &data, 0);
|
g_RCInput->getMsg(&msg, &data, 0);
|
||||||
|
|
||||||
|
if( ( msg>= CRCInput::RC_WithData ) && ( msg< CRCInput::RC_WithData+ 0x10000000 ) )
|
||||||
|
delete[] (unsigned char*) data;
|
||||||
|
|
||||||
}
|
}
|
||||||
progress.hide();
|
progress.hide();
|
||||||
}
|
}
|
||||||
@@ -1602,6 +1605,9 @@ bool CAudioPlayerGui::openSCbrowser(void)
|
|||||||
//printf("processPlaylistUrl(%s, %s)\n", files->Url.c_str(), files->Name.c_str());
|
//printf("processPlaylistUrl(%s, %s)\n", files->Url.c_str(), files->Name.c_str());
|
||||||
processPlaylistUrl(files->Url.c_str(), files->Name.c_str(), NULL, files->Time);
|
processPlaylistUrl(files->Url.c_str(), files->Name.c_str(), NULL, files->Time);
|
||||||
g_RCInput->getMsg(&msg, &data, 0);
|
g_RCInput->getMsg(&msg, &data, 0);
|
||||||
|
|
||||||
|
if( ( msg>= CRCInput::RC_WithData ) && ( msg< CRCInput::RC_WithData+ 0x10000000 ) )
|
||||||
|
delete[] (unsigned char*) data;
|
||||||
}
|
}
|
||||||
if (m_select_title_by_name)
|
if (m_select_title_by_name)
|
||||||
buildSearchTree();
|
buildSearchTree();
|
||||||
|
Reference in New Issue
Block a user