Apache OpenOffice (AOO) Bugzilla – Issue 99731
Frame loadFromUrl does not Close the previous Model
Last modified: 2017-05-20 11:28:07 UTC
I create a desktop 'Hidden' and load a first Model (oldModel). From the Model I get the Controller and then the Frame. From the Frame I load a second Model (newModel) with loadFromUrl. The oldModel is not Closed by the load of the newModel. I can Close the oldModel after the loadFromUrl of the newModel without a problem. I suspect that this behaviour (leaking Model) also happens on XDesktop.terminate. I also suspect that the Controller is changed on the second loadFromUrl and it is also not properly disposed.
jsc -> mba: can you please comment this issue
Please see my comments in dev@api.openoffice.org. The current behavior works "as designed". Changing the design would be a big effort and contains the risk of regressions. OTOH the burden to close the model is bearable (IMHO).
As it seems, my last comment didn't cause any reaction. So I opt for closing this issue with "wontfix". Closing a model is up to the "owner" of it. In case of visible frames, there is a shared ownership: all frames, perhaps also the code that created the model via API (in case it was not created by the user). In case of hidden frames the owner is the code that did the API call that created it in the first place.
Reset assigne to the default "issues@openoffice.apache.org".