mpv_free_node_contents method

void mpv_free_node_contents(
  1. Pointer<mpv_node> node
)

Frees any data referenced by the node. It doesn't free the node itself. Call this only if the mpv client API set the node. If you constructed the node yourself (manually), you have to free it yourself.

If node->format is MPV_FORMAT_NONE, this call does nothing. Likewise, if the client API sets a node with this format, this function doesn't need to be called. (This is just a clarification that there's no danger of anything strange happening in these cases.)

Implementation

void mpv_free_node_contents(
  ffi.Pointer<mpv_node> node,
) {
  return _mpv_free_node_contents(
    node,
  );
}