fix segfault,supplement to 69ae7d89e3f179a4263abbadc6cc7951607a3854

Origin commit data
------------------
Branch: ni/coolstream
Commit: 48f101404d
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2019-05-01 (Wed, 01 May 2019)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2019-05-01 16:28:43 +02:00
committed by vanhofen
parent 36e2061b76
commit b16e9b0327

View File

@@ -4131,9 +4131,6 @@ int CYTCacheSelectorTarget::exec(CMenuTarget* /*parent*/, const std::string & ac
void CMovieBrowser::refreshYTMenu()
{
for (u_int item_id = (u_int) yt_menue->getItemsCount() - 1; item_id > yt_menue_end - 1; item_id--) {
CMenuItem* m = yt_menue->getItem(item_id);
if (m && !m->isStatic)
delete m;
yt_menue->removeItem(item_id);
}
MI_MOVIE_INFO::miSource source = (show_mode == MB_SHOW_YT) ? MI_MOVIE_INFO::YT : MI_MOVIE_INFO::NK;