changing the UNO dispose/disposing() protocol ?

Miklos Vajna vmiklos at collabora.com
Wed May 31 06:54:28 UTC 2023


Hi Noel,

On Tue, May 30, 2023 at 12:29:40PM +0200, Noel Grandin <noelgrandin at gmail.com> wrote:
> > Do you have a context for this? I assume you dived into some actual
> > problem and then this came up?
> >
> I am specifically looking at cleaning up memory leaks, and a lot of those
> have to do with cycles forming in the UNO object graph.
> A recurrent problem in cleaning this up is when something throws
> DisposedException and short-circuits the dispose() logic in caller code.

I see. And also noticed in the meantime that the VclPtr dispose also
just does nothing on multiple disposes, so this sounds reasonable to me,
improves consistency.

Regards,

Miklos


More information about the LibreOffice mailing list