Fix resource leak
Variable anchor going out of scope leaks the storage it points to if anchor->anchorType() == KoShapeAnchor::AnchorPage.
CID:248749