Probably best to use a `std::unique_ptr` rather than worrying about when to `delete` this