summaryrefslogtreecommitdiff
path: root/svx/source/fmcomp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-07-13 10:17:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-07-13 13:06:16 +0200
commit3aa1152ccee13869b2c1d64a296524cf4fb73fa8 (patch)
tree33e8e649973bfcb5f55fa46ca777bdc180449e5c /svx/source/fmcomp
parent6d4a1716624a8a045ff4e90bd221b563be44be11 (diff)
a11y crash on teardown of FmXGridPeer
the XAccessible is destroyed before the attempt to dispose via the IAccessibleBrowseBox* so call that first before the XAccessible is destroyed Change-Id: I908a3fbc05f92b5e56b8b6f2bc0b27757d39d1fb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118825 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r--svx/source/fmcomp/fmgridif.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx
index 64c9c6029f64..6d866003e5e3 100644
--- a/svx/source/fmcomp/fmgridif.cxx
+++ b/svx/source/fmcomp/fmgridif.cxx
@@ -2085,7 +2085,10 @@ void FmXGridPeer::dispose()
VclPtr< FmGridControl > pGrid = GetAs< FmGridControl >();
if (pGrid)
+ {
pGrid->setDataSource(Reference< XRowSet > ());
+ pGrid->DisposeAccessible();
+ }
VCLXWindow::dispose();
}