Apache OpenOffice (AOO) Bugzilla – Issue 102220
dtrans: release resources on shutdown
Last modified: 2017-05-20 11:33:43 UTC
We've got a good bit of infrastructure in dtrans to release resource on exit, but as far as I can see its not possible for it to get called, right ? Its no biggy in practice, but its disturbing my efforts to see what X resources we might be leaking :-). Plausible patch attached
Created attachment 62497 [details] plausible patch
nah, that's a stinker. Lets take that back
The reason, why it is in its current "unclean" state is that at the time we did not have a mechanism that would know when the library gets unloaded (in fact, at the time it was worse, the application did a premature _exit to avoid static destructors in dynamically loaded modules; incidentally this is what Apple's Cocoa toolkit does today). Originally I planned to move dtrans into vcl - where lots of the problems you get from having to synchronize with vcl without linking against it could be solved; other ports would benefit from this move, too, like the mac services implementation. That is however a question of timeframe, at the moment I'm booked out. Anyway, with that plan you would have a DeInit function that could be used to determine a point in time in which the application will surely not access the service anymore. Just my 2 cents; I completely agree that the current state of affairs leaves plenty of room for improvement.
Reset assigne to the default "issues@openoffice.apache.org".