-
-
Notifications
You must be signed in to change notification settings - Fork 488
Closed
Description
Hello!
How are you? I have a weird problem:
Napi::Value ArrayFireTestAsync(const Napi::CallbackInfo& info) {
Napi::Function callback = info[0].As<Napi::Function>();
// who is going to free up / delete this pointer???
ArrayTestWorker* testWorker = new ArrayTestWorker(callback);
testWorker->Queue();
return info.Env().Undefined();
}
It looks like the testWorker
is a pointer
, but when is it going to be freed up/deleted? The example was no info how to delete this pointer
... Is this valid code?
Metadata
Metadata
Assignees
Labels
No labels