mirror of https://github.com/axmolengine/axmol.git
Make a UserDefault destructor to be virtual.
Because the UserDefault has virtual functions and allow programmers to inherit from, it must have a virtual destructor to allow a child object to destroy correctly.
This commit is contained in:
parent
254a4b0b0c
commit
ad494a7131
|
@ -245,7 +245,7 @@ public:
|
|||
|
||||
protected:
|
||||
UserDefault();
|
||||
~UserDefault();
|
||||
virtual ~UserDefault();
|
||||
|
||||
private:
|
||||
|
||||
|
|
Loading…
Reference in New Issue