svx/source/table/accessibletableshape.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit fcd101173cd3436f17a57dbe116f2ed35219a1e5
Author: Caolán McNamara <caol...@redhat.com>
Date:   Wed Dec 11 11:57:34 2013 +0000

    disposed but not dtored
    
    just die when you are supposed to, without this endless amounts of 
accessiblity
    cells remain after sorting slides with tables in them
    
    (cherry picked from commit 1c28065d8fe3e9a1394a7ecfc29e95a9639a1012)
    
    Conflicts:
        svx/source/table/accessibletableshape.cxx
    
    Change-Id: Ice9a86b8b806e58f9bf871341a38f7729798dda9
    (cherry picked from commit a90e08cb15e712e1d15a16de9a2677e57d81fd13)
    Reviewed-on: https://gerrit.libreoffice.org/7052
    Reviewed-by: Miklos Vajna <vmik...@collabora.co.uk>
    Tested-by: Miklos Vajna <vmik...@collabora.co.uk>

diff --git a/svx/source/table/accessibletableshape.cxx 
b/svx/source/table/accessibletableshape.cxx
index a5e910e..8872591 100644
--- a/svx/source/table/accessibletableshape.cxx
+++ b/svx/source/table/accessibletableshape.cxx
@@ -113,6 +113,12 @@ void AccessibleTableShapeImpl::dispose()
 {
     if( mxTable.is() )
     {
+        //remove all the cell's acc object in table's dispose.
+        for( AccessibleCellMap::iterator iter( maChildMap.begin() ); iter != 
maChildMap.end(); iter++ )
+        {
+            (*iter).second->dispose();
+        }
+        maChildMap.clear();
         Reference< XModifyListener > xListener( this );
         mxTable->removeModifyListener( xListener );
         mxTable.clear();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to