Fix invalid autorelease in generated constructors, see #668

This commit is contained in:
dcode 2019-06-15 00:04:50 +02:00
parent addb99eff2
commit bdd825b026

View File

@ -7848,7 +7848,7 @@ export class Compiler extends DiagnosticEmitter {
// TODO: base constructor might be inlined, but makeCallDirect can't do this // TODO: base constructor might be inlined, but makeCallDirect can't do this
stmts.push( stmts.push(
module.local_set(0, module.local_set(0,
this.makeCallDirect(assert(baseClass.constructorInstance), operands, reportNode) this.makeCallDirect(assert(baseClass.constructorInstance), operands, reportNode, false, true)
) )
); );
} }