aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <kai.sommerfeld@gmx.com>2017-04-12 20:05:46 +0200
committerKai Sommerfeld <kai.sommerfeld@gmx.com>2017-04-13 16:54:11 +0200
commit2de5a73a76776995c92d02cfed236c5dc0c44eb5 (patch)
treeb788693fa7f78447fc2d5cd6579a08165be51340
parent28f021fc5f572988048b149492aa94ced238f045 (diff)
[epg] Fix grid container control resource handling (Fixes log messages on kodi exit: 'Cleanup: Having to cleanup texture windows/pvr/epg_progress_horizontal.png'
-rw-r--r--xbmc/epg/GUIEPGGridContainer.cpp12
-rw-r--r--xbmc/epg/GUIEPGGridContainer.h3
2 files changed, 15 insertions, 0 deletions
diff --git a/xbmc/epg/GUIEPGGridContainer.cpp b/xbmc/epg/GUIEPGGridContainer.cpp
index dcf97cb55a..2a20b1dfd4 100644
--- a/xbmc/epg/GUIEPGGridContainer.cpp
+++ b/xbmc/epg/GUIEPGGridContainer.cpp
@@ -158,6 +158,18 @@ CGUIEPGGridContainer::CGUIEPGGridContainer(const CGUIEPGGridContainer &other)
{
}
+void CGUIEPGGridContainer::AllocResources()
+{
+ IGUIContainer::AllocResources();
+ m_guiProgressIndicatorTexture.AllocResources();
+}
+
+void CGUIEPGGridContainer::FreeResources(bool immediately)
+{
+ m_guiProgressIndicatorTexture.FreeResources(immediately);
+ IGUIContainer::FreeResources(immediately);
+}
+
void CGUIEPGGridContainer::SetPageControl(int id)
{
m_pageControl = id;
diff --git a/xbmc/epg/GUIEPGGridContainer.h b/xbmc/epg/GUIEPGGridContainer.h
index c634379884..2dd0009d38 100644
--- a/xbmc/epg/GUIEPGGridContainer.h
+++ b/xbmc/epg/GUIEPGGridContainer.h
@@ -43,6 +43,9 @@ namespace EPG
virtual CGUIEPGGridContainer *Clone() const { return new CGUIEPGGridContainer(*this); }
+ void AllocResources() override;
+ void FreeResources(bool immediately) override;
+
void SetPageControl(int id);
virtual bool OnAction(const CAction &action);