Skip to content

Commit 05d9539

Browse files
committed
feat: test
1 parent ab3a848 commit 05d9539

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

driver/js/include/driver/napi/jsc/jsc_ctx.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ struct ConstructorData {
6161
ConstructorData(void* func_wrapper, std::shared_ptr<JSCCtxValue>prototype, JSClassRef ref): function_wrapper(func_wrapper), prototype(prototype), weak_callback_wrapper(nullptr), class_ref(ref), object_data_map({}) {}
6262
~ConstructorData() {
6363
JSClassRelease(class_ref);
64+
function_wrapper = nullptr;
65+
prototype = nullptr;
66+
weak_callback_wrapper = nullptr;
6467
}
6568
};
6669

0 commit comments

Comments
 (0)