mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
fix possible memleak
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9e89d2e01d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-03-03 (Sun, 03 Mar 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -253,7 +253,7 @@ int CAudioPlayerGui::exec(CMenuTarget* parent, const std::string &actionKey)
|
||||
m_select_title_by_name = g_settings.audioplayer_select_title_by_name;
|
||||
}
|
||||
|
||||
//NI auto-load favorites
|
||||
// auto-load favorites
|
||||
if ((m_inetmode) && (m_playlist.empty()))
|
||||
{
|
||||
if (access(RADIO_FAVORITES_XML_FILE, F_OK) == 0)
|
||||
@@ -1340,6 +1340,9 @@ void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *urltag, c
|
||||
}
|
||||
element = xmlNextNode(element);
|
||||
g_RCInput->getMsg(&msg, &data, 0);
|
||||
|
||||
if( ( msg>= CRCInput::RC_WithData ) && ( msg< CRCInput::RC_WithData+ 0x10000000 ) )
|
||||
delete[] (unsigned char*) data;
|
||||
}
|
||||
progress.hide();
|
||||
}
|
||||
@@ -1598,6 +1601,9 @@ bool CAudioPlayerGui::openSCbrowser(void)
|
||||
//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);
|
||||
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)
|
||||
buildSearchTree();
|
||||
|
Reference in New Issue
Block a user