Skip to content

Commit

Permalink
free rev hub in C++ destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
LandryNorris committed Aug 15, 2023
1 parent c136e31 commit e77402c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/rhsplib/src/RevHubWrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ RevHub::RevHub(const Napi::CallbackInfo &info)
// TODO(jan): Non-default constructor that calls RevHub::open()
}

RevHub::~RevHub() {
freeRevHub(this->obj);
}

Napi::Value RevHub::open(const Napi::CallbackInfo &info) {
Napi::Env env = info.Env();

Expand Down

0 comments on commit e77402c

Please sign in to comment.