Fix memory corruption bug due to dangling string pointer in video code.