Try to resolve memory leak issue from vector<a pointer> but failed.