"Wrapped" has virtual functions so it should have a virtual destructor.

Deleting an object through a pointer to a base class is undefined behaviour unless the destructor in the base class is virtual.
pull/998/head
Andy Maloney 2023-01-17 19:30:18 -05:00
parent 69b525494b
commit 5dd2928790
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ protected:
Wrapped(const StringName p_godot_class); Wrapped(const StringName p_godot_class);
Wrapped(GodotObject *p_godot_object); Wrapped(GodotObject *p_godot_object);
virtual ~Wrapped() {}
public: public:
static StringName &get_class_static() { static StringName &get_class_static() {