We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab3a848 commit 05d9539Copy full SHA for 05d9539
1 file changed
driver/js/include/driver/napi/jsc/jsc_ctx.h
@@ -61,6 +61,9 @@ struct ConstructorData {
61
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({}) {}
62
~ConstructorData() {
63
JSClassRelease(class_ref);
64
+ function_wrapper = nullptr;
65
+ prototype = nullptr;
66
+ weak_callback_wrapper = nullptr;
67
}
68
};
69
0 commit comments