diff options
author | Anton Fedchin <afedchin@ruswizards.com> | 2015-05-11 08:23:49 +0300 |
---|---|---|
committer | Anton Fedchin <afedchin@ruswizards.com> | 2015-05-11 08:23:49 +0300 |
commit | d57c726a899b48b365e2a426e492d9f6afe7cb5b (patch) | |
tree | 9929c669367a03887061818a2dfe87767203ed11 | |
parent | 701c0e48cbf56128274d11817bfcfd03fa577a81 (diff) |
[win32] WinRenderer: Fix possible memory leak.
-rw-r--r-- | xbmc/cores/VideoRenderers/WinRenderer.cpp | 1 |
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; |