From 9275b270ecd7b085e4d8425d501885e5fcaef36d Mon Sep 17 00:00:00 2001 From: jmarshallnz Date: Sat, 21 Aug 2010 06:41:28 +0000 Subject: 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 --- guilib/GUITexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guilib') 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); -- cgit v1.2.3