Not a merge-stopping issue... but why not vChain.clear() ? I doubt SetTip(NULL) called often enough to justify the memory saved by the more obscure swap-with-an-empty-vector coding idiom.