Closed hilaire closed 4 months ago
The view (DrgMorph) of each math item model set an observer on the model. See if we can avoid it, or remove them properly. See #registersEvents and #release in DrGMorph
I discard forcing garbage collection of weak references, from the referred model in the observer pattern. It seems stable now, it could be reopen in future in case of an undetected issue.
Flush the event system at appropriate time with the message #flushEventSystem. It seems to definitely solve the issue.
When a DrGeo view is closed, there is still garbages not collected as item views and models, FilePreviewMorph, etc. Observe ActiveModels's ActionMaps class variable. It is full of unregistered events.