A shared pointer would be better.