[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - svx/source

Caolán McNamara caolanm at redhat.com
Fri May 16 20:13:15 PDT 2014


 svx/source/sdr/properties/itemsettools.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 68ee7e9c423ba8ca01862435753105c7c28aa62e
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri May 16 20:50:24 2014 +0100

    strangely obvious leaky code
    
    Change-Id: I968cbb784d53e0cff0649061c58f752939226a09
    (cherry picked from commit 5b2f1b46b129c41890c54513c6d386407db6718a)
    Reviewed-on: https://gerrit.libreoffice.org/9385
    Reviewed-by: Kohei Yoshida <libreoffice at kohei.us>
    Tested-by: Kohei Yoshida <libreoffice at kohei.us>

diff --git a/svx/source/sdr/properties/itemsettools.cxx b/svx/source/sdr/properties/itemsettools.cxx
index cea89d0..10472bc 100644
--- a/svx/source/sdr/properties/itemsettools.cxx
+++ b/svx/source/sdr/properties/itemsettools.cxx
@@ -120,6 +120,7 @@ namespace sdr
                         SfxPoolItem* pNewItem = pItem->Clone();
                         pNewItem->ScaleMetrics(nMul, nDiv);
                         rSet.Put(*pNewItem);
+                        delete pNewItem;
                     }
                 }
                 nWhich = aIter.NextWhich();


More information about the Libreoffice-commits mailing list