Skip to content

Use a consistent instance key in AnimateLibrary to prevent leaked references. #36

Open
NipponSunrise wants to merge 1 commit intoopenfl:masterfrom
NipponSunrise:bugfix/animate-library-instances-memleak
Open

Use a consistent instance key in AnimateLibrary to prevent leaked references. #36
NipponSunrise wants to merge 1 commit intoopenfl:masterfrom
NipponSunrise:bugfix/animate-library-instances-memleak

Conversation

@NipponSunrise
Copy link

Switch AnimateLibrary to use instanceID as the sole key in instances. We now register/unregister under instanceID (instead of the raw uuid), so instances.set() and instances.remove() hit the same key, preventing stale map entries after unload() with no runtime behavior changes.

Additional consideration

Rename get(uuid:String) to getByInstanceID(key:String), update call sites, and document that instanceID is the canonical lookup key going forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant