xbmc/xbmc — pull request #2363 by FernetMenta (2013-03-03 11:13:29+00:00)
Title: OverlayContainer: release render resources on cleanup

If subtitles are loaded from a separate file, it seems that they are ref counted elsewhere. Render resources are not cleared until the video is stopped. The Pi runs out of GPU memory after an hour of playback.
Credits to @popcornmix for tracking this down.