Skip to content

Commit 9f33676

Browse files
committed
fix leak
1 parent 67120b9 commit 9f33676

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/embind/test_val.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,9 @@ int main() {
717717
};
718718
);
719719
Dummy& staticDummy = val::global("c")().as<Dummy&>();
720+
EM_ASM(
721+
globalThis.staticDummy.delete();
722+
);
720723

721724
printf("end\n");
722725
return 0;

0 commit comments

Comments
 (0)