diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-08-21 06:41:28 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-08-21 06:41:28 +0000 |
commit | 9275b270ecd7b085e4d8425d501885e5fcaef36d (patch) | |
tree | 2eba8cd2f51b04823ad0422f2af4333b25f8b68b /guilib | |
parent | abbacb5d75c639cb1d40c5509ef04e9759f23000 (diff) |
fixed: Ensure any images that fail to load are free'd immediately on resource deallocation, to ensure that further attempts to load the image may be made. Fixes #9926.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@33009 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib')
-rw-r--r-- | guilib/GUITexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guilib/GUITexture.cpp b/guilib/GUITexture.cpp index a9d9087b3f..25b5ed6faa 100644 --- a/guilib/GUITexture.cpp +++ b/guilib/GUITexture.cpp @@ -439,7 +439,7 @@ void CGUITextureBase::CalculateSize() void CGUITextureBase::FreeResources(bool immediately /* = false */) { if (m_isAllocated == LARGE || m_isAllocated == LARGE_FAILED) - g_largeTextureManager.ReleaseImage(m_info.filename, immediately); + g_largeTextureManager.ReleaseImage(m_info.filename, immediately || (m_isAllocated == LARGE_FAILED)); else if (m_isAllocated == NORMAL && m_texture.size()) g_TextureManager.ReleaseTexture(m_info.filename); |