1/ Since that change mxAccessible in ScCsvGrid holds a rtl::Reference on a ScAccessibleCsvGrid
2/ Which in turn holds a VclPtr<> (aka a rtl::Reference with lipstick) on the ScCsvControl
These are a circular references, making both of them live forever and leak past the point where on LibreOffice close all of Vcl is long gone, when these are dtored. Trying to kill Vcl stuff at that point then blows up (because the stuff to kill is long dead).
This appears to be a regression from https:/ /github. com/LibreOffice /core/commit/ 2660d24a07866e0 83c5135ea263030 f3e3a2e729 (havent verified that yet):
1/ Since that change mxAccessible in ScCsvGrid holds a rtl::Reference on a ScAccessibleCsvGrid
2/ Which in turn holds a VclPtr<> (aka a rtl::Reference with lipstick) on the ScCsvControl
These are a circular references, making both of them live forever and leak past the point where on LibreOffice close all of Vcl is long gone, when these are dtored. Trying to kill Vcl stuff at that point then blows up (because the stuff to kill is long dead).