Fix global leak in pause.