Use std::shared_ptr
Remove useless lines
adjust the comment