Skip to content

Commit

Permalink
[OverlayRenderer] Fix memory leak of subtitles 2
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Sep 14, 2015
1 parent a26407a commit 843abc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/cores/VideoPlayer/VideoRenderers/OverlayRenderer.cpp
Expand Up @@ -138,7 +138,10 @@ void CRenderer::ReleaseUnused()
break;
}
if (!found)
{
delete it->second;
it = m_textureCache.erase(it);
}
else
++it;
}
Expand Down

0 comments on commit 843abc7

Please sign in to comment.