Resolve leaks moving from Add to Sink

This commit is contained in:
ReinUsesLisp 2018-10-23 05:02:18 -03:00
parent 951ef21f17
commit f581df0935
3 changed files with 11 additions and 11 deletions

View file

@ -14,7 +14,7 @@ Ref Module::Decorate(Ref target, spv::Decoration decoration,
auto const op{new Op(spv::Op::OpDecorate)};
op->Add(target);
AddEnum(op, decoration);
op->Add(literals);
op->Sink(literals);
return AddAnnotation(op);
}