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(