diff --git a/src/gui/moviebrowser/mb.cpp b/src/gui/moviebrowser/mb.cpp index edd42441d..27a653877 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -2071,13 +2071,15 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg) str_replace(extension, ".jpg", cover_file); printf("TMDB: %s : %s\n",m_movieSelectionHandler->file.Name.c_str(),cover_file.c_str()); cTmdb* tmdb = cTmdb::getInstance(); - tmdb->setTitle(m_movieSelectionHandler->epgTitle); - if ((tmdb->getResults() > 0) && (tmdb->hasCover())) { - if (!cover_file.empty()) - if (tmdb->getSmallCover(cover_file)) - refresh(); - } - if (tmdb) { + if (tmdb) + { + tmdb->setTitle(m_movieSelectionHandler->epgTitle); + if ((tmdb->getResults() > 0) && (tmdb->hasCover())) + { + if (!cover_file.empty()) + if (tmdb->getSmallCover(cover_file)) + refresh(); + } tmdb->cleanup(); tmdb = NULL; }