Skip to content

Commit

Permalink
remove destructor unref as per nodejs/node-addon-api#998
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Dec 12, 2021
1 parent ccb6d1d commit 3ffe123
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/reference.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ PythonReference::PythonReference(PythonObject *scope) : mScope(scope) {
}

PythonReference::~PythonReference() {
if (isRef) {
mScope->Unref();
}

}

template <typename T> T *PythonReference::Unwrap(PyObject *wrapped) {
Expand Down

0 comments on commit 3ffe123

Please sign in to comment.