mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-02 19:57:13 +00:00
* fix(sdk): release the parsed film when a session is disposed A disposed session kept its whole parsed document and element caches. Anything that still referenced the session, such as a stale closure or React fiber, therefore kept the replaced film in memory, so memory grew with every film swap. dispose() now drops the document and caches. * fix(sdk): warn when a disposed session is read A disposed session answers reads from an empty document. Outside production it now logs once, with a stack, so a caller still holding a stale session shows up instead of silently reading nothing.