mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-28 10:16:13 +01:00
Resolve leaks moving from Add to Sink
This commit is contained in:
parent
951ef21f17
commit
f581df0935
3 changed files with 11 additions and 11 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue