[Libreoffice-commits] core.git: filter/source

Caolán McNamara caolanm at redhat.com
Fri Feb 16 12:03:19 UTC 2018


 filter/source/msfilter/msdffimp.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 79afa1d9b3ac33b75512095c6383db7f47342f26
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Feb 16 09:54:10 2018 +0000

    ofz#6390 Leak
    
    Change-Id: Icc2b90ac062da32c9da4cce67f15f6e55e005c2b
    Reviewed-on: https://gerrit.libreoffice.org/49842
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 4d0403a1163e..69688a038fae 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4137,6 +4137,8 @@ SdrObject* SvxMSDffManager::ImportGroup( const DffRecordHeader& rHd, SvStream& r
                             if (nShapeId)
                                 insertShapeId(nShapeId, pTmp);
                         }
+                        else
+                            SdrObject::Free(pTmp);
                     }
                 }
                 if (!aRecHd2.SeekToEndOfRecord(rSt))


More information about the Libreoffice-commits mailing list