aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRainer Hochecker <fernetmenta@online.de>2016-11-19 10:32:34 +0100
committerRainer Hochecker <fernetmenta@online.de>2016-11-19 10:32:34 +0100
commit5b00e3895c41a9bb9e70639b6f35d1b220ea8a6e (patch)
tree6a831c76d8c9ad81fcbcaab25e6295cd3c089253
parentbbd323fe2ec3254ce71872e2c8e2e97fcf1f52d9 (diff)
guilib: fix segfault caused by not protected method CGUITextureManager::HasTexture
-rw-r--r--xbmc/guilib/TextureManager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/xbmc/guilib/TextureManager.cpp b/xbmc/guilib/TextureManager.cpp
index 64930e2951..02b8e70df8 100644
--- a/xbmc/guilib/TextureManager.cpp
+++ b/xbmc/guilib/TextureManager.cpp
@@ -251,6 +251,8 @@ bool CGUITextureManager::CanLoad(const std::string &texturePath)
bool CGUITextureManager::HasTexture(const std::string &textureName, std::string *path, int *bundle, int *size)
{
+ CSingleLock lock(m_section);
+
// default values
if (bundle) *bundle = -1;
if (size) *size = 0;