ass_free_style method

void ass_free_style(
  1. Pointer<ASS_Track> track,
  2. int sid
)

\brief Delete a style. \param track track \param sid style id Deallocates style data. Does not modify track->n_styles. Freeing a style without subsequently setting track->n_styles to a value less than or equal to the freed style id before calling any other libass API function on the track is undefined behaviour. Additionally a freed style style still being referenced by an event in track->events will also result in undefined behaviour. See GENERAL NOTE in ass_types.h.

Implementation

void ass_free_style(
  ffi.Pointer<ASS_Track> track,
  int sid,
) {
  return _ass_free_style(
    track,
    sid,
  );
}