Bug fix: destroy any previous links on free'd pages