Closed lihaozhehw closed 5 years ago
First, destructors are automatically generated by the compiler if not explicitly provided. This is a standard behavior.
Second, please make all related changes in a single pull request. Your changes don't need to be reviewed and accepted separately.
The purpose of the destructor is to do the corresponding cleanup when the class is released, so that the coder does not forget the cleanup of the resource, so if there is a constructor, there must be a destructor.