svl/source/items/stylepool.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 88ec498f1d287dced1a9ca095a0776b14a023891
Author:     himajin100000 <[email protected]>
AuthorDate: Sun Sep 16 18:54:16 2018 +0900
Commit:     Noel Grandin <[email protected]>
CommitDate: Mon Sep 17 15:18:33 2018 +0200

    adapt to commit 1476d95b6ed3afa35ccc
    
    Change-Id: Ie6582b324d4c7feb8dbc7cac852b2c52358a052a
    Reviewed-on: https://gerrit.libreoffice.org/60547
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/svl/source/items/stylepool.cxx b/svl/source/items/stylepool.cxx
index cdda2f9de0e3..9ea2b42f9ff0 100644
--- a/svl/source/items/stylepool.cxx
+++ b/svl/source/items/stylepool.cxx
@@ -417,7 +417,7 @@ std::shared_ptr<SfxItemSet> StylePoolImpl::insertItemSet( 
const SfxItemSet& rSet
 #ifdef DEBUG
     {
         sal_Int32 nCheck = -1;
-        IStylePoolIteratorAccess* pIter = createIterator(false,false);
+        std::unique_ptr<IStylePoolIteratorAccess> pIter = 
createIterator(false,false);
         std::shared_ptr<SfxItemSet> pTemp;
         do
         {
@@ -425,7 +425,6 @@ std::shared_ptr<SfxItemSet> StylePoolImpl::insertItemSet( 
const SfxItemSet& rSet
             pTemp = pIter->getNext();
         } while( pTemp.get() );
         DBG_ASSERT( mnCount == nCheck, "Wrong counting");
-        delete pIter;
     }
 #endif
     return pCurNode->getItemSet();
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to