mpv_free method

void mpv_free(
  1. Pointer<Void> data
)

General function to deallocate memory returned by some of the API functions. Call this only if it's explicitly documented as allowed. Calling this on mpv memory not owned by the caller will lead to undefined behavior.

@param data A valid pointer returned by the API, or NULL.

Implementation

void mpv_free(
  ffi.Pointer<ffi.Void> data,
) {
  return _mpv_free(
    data,
  );
}