some inits and never read var

This commit is contained in:
Jacek Jendrzej
2017-08-23 12:58:26 +02:00
parent c99486520e
commit ba600f0e5c
8 changed files with 10 additions and 7 deletions

View File

@@ -1472,7 +1472,6 @@ void CMoviePlayerGui::PlayFileLoop(void)
disableOsdElements(MUTE);
CFileBrowser *playlist = new CFileBrowser();
CFile *pfile = NULL;
pfile = &(*filelist_it);
int selected = std::distance( filelist.begin(), filelist_it );
filelist_it = filelist.end();
if (playlist->playlist_manager(filelist, selected))
@@ -2451,7 +2450,6 @@ bool CMoviePlayerGui::convertSubtitle(std::string &text)
else {
memset(buf + (len - olen), 0, olen);
text = buf;
ret = true;
}
free(buf);