Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
ensures we close any .xbt packs regardless of whether we've taken a t…
Browse files Browse the repository at this point in the history
…exture from them or not - closes #10876
  • Loading branch information
Jonathan Marshall committed Mar 4, 2011
1 parent a1bac03 commit e290672
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions xbmc/guilib/TextureBundle.cpp
Expand Up @@ -106,15 +106,8 @@ int CTextureBundle::LoadAnim(const CStdString& Filename, CBaseTexture*** ppTextu

void CTextureBundle::Cleanup()
{
if (m_useXBT)
{
m_tbXBT.Cleanup();
}
else if (m_useXPR)
{
m_tbXPR.Cleanup();
}

m_tbXBT.Cleanup();
m_tbXPR.Cleanup();
m_useXPR = m_useXBT = false;
}

Expand Down

0 comments on commit e290672

Please sign in to comment.