dead code prune
fix mismatched new delete