Apache OpenOffice (AOO) Bugzilla – Issue 112603
sax: use rtl::ByteSequence for trivial global objects instead of uno::Sequence
Last modified: 2010-09-22 09:27:59 UTC
A global uno::Sequence object is a little problematic in that in its dtor uno::Sequence looks up the types of its contained objects to do correct release on them. This needs the cppu infrastructure to be working, but that's rather problematic at shut-down time where there's some nasty life-cycle issues in cppu. Currently the cppu foo leaks, so this isn't a noticeable issue, but a leaking cppu causes the threads used by e.g. unopkg to not exit correctly and outlive process exit and eventual destruction of all used data. For sax, the whole issue could be side-stepped by using rtl::BytesSequences and toUnoSequence which is a simple inline cast, so no detrimental performance issue should exist.
Created attachment 70149 [details] like so
Stephan, please comment
looks good
I'll take this then as these are the only cppu::Sequences to ctor before main and I'd like to clear them out of the way
done as http://hg.services.openoffice.org/cws/cmcfixes78/rev/883150fba4cd
cmc->sb: willing to verify this change ?, i.e. http://hg.services.openoffice.org/cws/cmcfixes78/rev/883150fba4cd
verified by code review
.