From 7a2a7ea9e4d0507c957bf72fd3b90d2915479451 Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Wed, 22 Sep 2021 00:40:57 +1000 Subject: [PATCH] Add virtual destructor to Object class --- binding_generator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/binding_generator.py b/binding_generator.py index b66a956..22ba8ba 100644 --- a/binding_generator.py +++ b/binding_generator.py @@ -961,6 +961,8 @@ def generate_engine_class_header(class_api, used_classes, fully_used_classes, us result.append("") result.append("\ttemplate") result.append("\tstatic T *cast_to(Object *p_object);") + + result.append("\tvirtual ~Object() {};") elif use_template_get_node and class_name == "Node": result.append("\ttemplate") result.append(