Commit e2e05cda authored by gsamain's avatar gsamain Committed by Xavier Thompson

cypclass attr destructor handler: only care about not-inherited attrs, as C++ will chain dtor calls

parent 3776a2a6
......@@ -1007,7 +1007,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
self.generate_cyp_class_deferred_definitions(scope.sue_entries, code)
py_attrs = [e for e in scope.entries.values()
if e.type.is_pyobject and not e.is_inherited]
cypclass_attrs = [e for e in scope.var_entries + scope.inherited_var_entries
cypclass_attrs = [e for e in scope.var_entries
if e.type.is_cyp_class and not e.name == "this"
and not e.is_type]
has_virtual_methods = False
......@@ -1137,7 +1137,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
def generate_cyp_class_attrs_destructor_definition(self, entry, code):
scope = entry.type.scope
cypclass_attrs = [e for e in scope.var_entries + scope.inherited_var_entries
cypclass_attrs = [e for e in scope.var_entries
if e.type.is_cyp_class and not e.name == "this"
and not e.is_type]
if cypclass_attrs:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment