Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebIDL: Use malloc/strcpy on Struct String setters, fix libass#77
From @TheOneric: For most libass APIs the char* strings remain owned by the caller with libass doing internal copies if needed. This means the caller must if necessary free the memory at some point after the libass API call finished. The track and event modification/creation APIs are different because they work close to library internals (which is also why their usage comes with more restrictions/obligations than other APIs and why they don't sensibly work with ass.h alone). Since we transfer ownership of the pointer to libass, this is unlikely to cause memory leaks.
- Loading branch information