Skip to content

Commit a575a6e

Browse files
KevinEadymhdawson
authored andcommitted
src: fix leak in ObjectWrap instance set/getters
Fixes: #891 PR-URL: #899 Fixes: #891 Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent b6e844e commit a575a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

napi-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3262,7 +3262,7 @@ inline void InstanceWrap<T>::AttachPropData(napi_env env,
32623262
napi_value value,
32633263
const napi_property_descriptor* prop) {
32643264
napi_status status;
3265-
if (prop->method != nullptr && !(prop->attributes & napi_static)) {
3265+
if (!(prop->attributes & napi_static)) {
32663266
if (prop->method == T::InstanceVoidMethodCallbackWrapper) {
32673267
status = Napi::details::AttachData(env,
32683268
value,

0 commit comments

Comments
 (0)