Skip to content

Commit

Permalink
Memleak fix (#16354)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatriceJiang authored Oct 8, 2023
1 parent 23ca385 commit d79d095
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions native/cocos/bindings/manual/jsb_conversions.h
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,7 @@ inline bool nativevalue_to_se(const ccstd::vector<T> &from, se::Value &to, se::O
if constexpr (!std::is_pointer<T>::value && is_jsb_object_v<T>) {
auto *pFrom = ccnew T(from[i]);
nativevalue_to_se(pFrom, tmp, ctx);
tmp.toObject()->getPrivateObject()->tryAllowDestroyInGC();
} else {
nativevalue_to_se(from[i], tmp, ctx);
}
Expand Down

0 comments on commit d79d095

Please sign in to comment.