aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Fedchin <afedchin@ruswizards.com>2015-05-11 08:23:49 +0300
committerAnton Fedchin <afedchin@ruswizards.com>2015-05-11 08:23:49 +0300
commitd57c726a899b48b365e2a426e492d9f6afe7cb5b (patch)
tree9929c669367a03887061818a2dfe87767203ed11
parent701c0e48cbf56128274d11817bfcfd03fa577a81 (diff)
[win32] WinRenderer: Fix possible memory leak.
-rw-r--r--xbmc/cores/VideoRenderers/WinRenderer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/xbmc/cores/VideoRenderers/WinRenderer.cpp b/xbmc/cores/VideoRenderers/WinRenderer.cpp
index 949143de0e..098f55f00f 100644
--- a/xbmc/cores/VideoRenderers/WinRenderer.cpp
+++ b/xbmc/cores/VideoRenderers/WinRenderer.cpp
@@ -1208,6 +1208,7 @@ bool CWinRenderer::CreateYV12Texture(int index)
if (!buf->Create(m_format, m_sourceWidth, m_sourceHeight))
{
CLog::Log(LOGERROR, __FUNCTION__" - Unable to create YV12 video texture %i", index);
+ delete buf;
return false;
}
m_VideoBuffers[index] = buf;