Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix destructor
  • Loading branch information
kripken committed Jul 29, 2024
commit 3a299bd2307753f592ca49084d7492903dd163b2
2 changes: 1 addition & 1 deletion src/wasm/literal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Literal::~Literal() {
if (type.isBasic()) {
return;
}
if (isNull() || isData() || type.getHeapType() == HeapType::ext) {
if (isNull() || isData() || type.getHeapType().isMaybeShared(HeapType::ext)) {
gcData.~shared_ptr();
}
}
Expand Down