aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorace20022 <ace20022@ymail.com>2016-01-08 00:30:57 +0100
committerace20022 <ace20022@ymail.com>2016-01-08 20:04:50 +0100
commit311f032aadd104029fcb687b0416fad5cc14272d (patch)
tree9fb476b0abc29df95f179d3a71b495116f932a01
parent0544094673c015228ecf31e35f5e7c62e61c3a1a (diff)
[TextureManager] Fix possible invalid pointer deletion.
-rw-r--r--xbmc/guilib/TextureManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/guilib/TextureManager.cpp b/xbmc/guilib/TextureManager.cpp
index d172d88481..ce74975610 100644
--- a/xbmc/guilib/TextureManager.cpp
+++ b/xbmc/guilib/TextureManager.cpp
@@ -341,9 +341,9 @@ const CTextureArray& CGUITextureManager::Load(const std::string& strTextureName,
if (bundle >= 0)
{
- CBaseTexture **pTextures;
+ CBaseTexture **pTextures = nullptr;
int nLoops = 0, width = 0, height = 0;
- int* Delay;
+ int* Delay = nullptr;
int nImages = m_TexBundle[bundle].LoadAnim(strTextureName, &pTextures, width, height, nLoops, &Delay);
if (!nImages)
{