Skip to content

1.8.189

Compare
Choose a tag to compare
@RobertBColton RobertBColton released this 21 Aug 07:03
· 54 commits to master since this release
Secondary Property Link Factory Ownership

This addresses the disposal of the remaining secondary property link
factories by redefining the exception listener given to the factory to
also double as having an "ownership" concept over the factory. That
allows the base resource frame class to mass dispose of all primary and
secondary property links created by factories it has ownership of. It
does so through a static API now provided by the factory class which
keeps track of the owned factories using a WeakHashMap. We have to
remove property links when the frames close for the same reasons we have
to stop sound and sprite playback because garbage collection is never
guaranteed to run and you can not rely on it for cleanup. This solution
was chosen because it's the cleanest and required the least changes to
the existing API and classes. This should hopefully resolve all
remaining cyclical exceptions related to lapsed property links.