Skip to content
This repository has been archived by the owner on Apr 15, 2023. 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 xbmc#10876

(cherry picked from commit e290672)
  • Loading branch information
Jonathan Marshall authored and theuni committed Mar 5, 2011
1 parent 0c0454d commit 018ddec
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions 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 018ddec

Please sign in to comment.