Commit 2a82f641 authored by Stefan Behnel's avatar Stefan Behnel

prevent external base types from generating cleanup code for freelist

parent 232d3cab
......@@ -2070,7 +2070,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
nanny=False)
for entry in env.c_class_entries:
cclass_type = entry.type
if cclass_type.base_type:
if cclass_type.is_external or cclass_type.base_type:
continue
if cclass_type.scope.directives.get('freelist', 0):
scope = cclass_type.scope
......
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