summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/classes
diff options
context:
space:
mode:
authorAndy Maloney <asmaloney@gmail.com>2023-01-17 19:30:18 -0500
committerAndy Maloney <asmaloney@gmail.com>2023-01-19 05:57:17 -0500
commit5dd292879060e0608164b139433d8f2ac84824e4 (patch)
tree91d67ef7c0eba6b9c1921c5b2117c161d41b6497 /include/godot_cpp/classes
parent69b525494bf41097edc86d44b1d4b11ddfeb2440 (diff)
downloadredot-cpp-5dd292879060e0608164b139433d8f2ac84824e4.tar.gz
"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.
Diffstat (limited to 'include/godot_cpp/classes')
-rw-r--r--include/godot_cpp/classes/wrapped.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/godot_cpp/classes/wrapped.hpp b/include/godot_cpp/classes/wrapped.hpp
index 7427dcb..fbab055 100644
--- a/include/godot_cpp/classes/wrapped.hpp
+++ b/include/godot_cpp/classes/wrapped.hpp
@@ -77,6 +77,7 @@ protected:
Wrapped(const StringName p_godot_class);
Wrapped(GodotObject *p_godot_object);
+ virtual ~Wrapped() {}
public:
static StringName &get_class_static() {