Skip to content

Commit

Permalink
Memleak fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PatriceJiang authored Oct 7, 2023
1 parent d437903 commit 259b82a
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 259b82a

Please sign in to comment.