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 Nov 23, 2021
1 parent 961b4e9 commit 50390c0
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 50390c0

Please sign in to comment.