title: Do i need to delete pointer which was passed into Napi::ArrayBuffer::New()
body: <p>I am writing a Node Addon Function That returns a Promise, I have code like this.</p>
  <pre><code>size_t outbufsize = 1000;
  context-&gt;data.size = outbufsize;
  context-&gt;data.data = new char[outbufsize];
  </code></pre>
  <p>When I finish work.</p>
  <pre><code>context-&gt;deffered.Resolve(Napi::ArrayBuffer::New(env, context-&gt;data.data, context-&gt;data.size));
  </code></pre>
  <p>Do I need to delete pointer &quot;context-&gt;data.data&quot;?
  if I delete this pointer.
  I get an undefine behavior ArrayBuffer on the Javascript side.
  But if I don't delete the pointer, I don't know if the memory is freed or not?</p>