SagerNet/cronet-go

About when to call destroy()

Closed this issue · 1 comments

Sorry not familiar with c/c++.

When do I need to call destroy() for a cronet-created structure (like RequestFinishedInfo), or not? And what about incoming parameters like HttpHeader?

@klzgrad

   * @param request_info {@link RequestFinishedInfo} for finished request.
   *     Ownership is *not* transferred by this call, do not destroy
   *     {@code request_info}.