Fix for heap corruption reported by ohMediaPlayer debug tests