Memory leak in playback fixed