From 8c7e0b534de0f0eb5dfc41f4206f26f512ddee26 Mon Sep 17 00:00:00 2001 From: Kai Sommerfeld Date: Wed, 17 Oct 2018 12:00:07 +0200 Subject: [PVR] Fix CID 188792: Memory - illegal accesses (WRAPPER_ESCAPE). --- xbmc/addons/PVRClient.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xbmc/addons/PVRClient.cpp b/xbmc/addons/PVRClient.cpp index 0fb2e643d5..434382bff0 100644 --- a/xbmc/addons/PVRClient.cpp +++ b/xbmc/addons/PVRClient.cpp @@ -656,7 +656,8 @@ public: m_strIMDBNumber(kodiTag->IMDBNumber()), m_strEpisodeName(kodiTag->EpisodeName(true)), m_strIconPath(kodiTag->Icon()), - m_strSeriesLink(kodiTag->SeriesLink()) + m_strSeriesLink(kodiTag->SeriesLink()), + m_strGenreDescription(kodiTag->GetGenresLabel()) { time_t t; kodiTag->StartAsUTC().GetAsTime(t); @@ -688,7 +689,7 @@ public: strEpisodeName = m_strEpisodeName.c_str(); strIconPath = m_strIconPath.c_str(); strSeriesLink = m_strSeriesLink.c_str(); - strGenreDescription = kodiTag->GetGenresLabel().c_str(); + strGenreDescription = m_strGenreDescription.c_str(); } virtual ~CAddonEpgTag() = default; @@ -705,6 +706,7 @@ private: std::string m_strEpisodeName; std::string m_strIconPath; std::string m_strSeriesLink; + std::string m_strGenreDescription; }; PVR_ERROR CPVRClient::IsRecordable(const CConstPVREpgInfoTagPtr &tag, bool &bIsRecordable) const -- cgit v1.2.3