Skip to content

Commit

Permalink
[guilib] Ensure ListItems release the layout before it is destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Jan 17, 2019
1 parent 6733f37 commit 5b61165
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/guilib/GUIBaseContainer.cpp
Expand Up @@ -58,6 +58,10 @@ CGUIBaseContainer::CGUIBaseContainer(const CGUIBaseContainer &) = default;

CGUIBaseContainer::~CGUIBaseContainer(void)
{
// release the container from items
for (auto item :m_items)
item->FreeMemory();

delete m_listProvider;
}

Expand Down

0 comments on commit 5b61165

Please sign in to comment.