From 43c45d2b0fe7d5f7e20be332e774228c2c84f19e Mon Sep 17 00:00:00 2001 From: Ferdinand Holzer Date: Sat, 22 Aug 2020 21:57:45 +0200 Subject: [PATCH] Fix leak of ThreadSafeData in AsyncProgressWorkerBase --- napi-inl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/napi-inl.h b/napi-inl.h index 4f0636a08..73f578e57 100644 --- a/napi-inl.h +++ b/napi-inl.h @@ -4748,6 +4748,7 @@ inline void AsyncProgressWorkerBase::OnAsyncWorkProgress(Napi::Env /* void* data) { ThreadSafeData* tsd = static_cast(data); tsd->asyncprogressworker()->OnWorkProgress(tsd->data()); + delete tsd; } template