mml-io / mml

Metaverse Markup Language
https://mml.io
MIT License
120 stars 13 forks source link

Fix memory leak in m-frame loading progress (#178) #182

Closed MarcusLongmuir closed 2 months ago

MarcusLongmuir commented 2 months ago

Fixes #178.

The removal of loading progress of static m-frames was being reported to the wrong LoadingProgressManager. It should have been being reported to the parent LoadingProgressManager, but was instead reported to its own. This meant that the parent LoadingProgressManager was retaining a reference to the m-frame element which was preventing it from being garbage collected.

There are also two minor drive-by fixes that were found during investigation that prevent holding references to previous instance data.

cc @tbergmueller


What kind of changes does your PR introduce? (check at least one)

Does your PR introduce a breaking change? (check one)

Does your PR fulfill the following requirements?