summaryrefslogtreecommitdiffstats
path: root/filter/source/msfilter/msdffimp.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-16 09:54:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-16 13:02:53 +0100
commit79afa1d9b3ac33b75512095c6383db7f47342f26 (patch)
treeebb5e4ff97c82f91845a6fa4ff32de7e9982d0dc /filter/source/msfilter/msdffimp.cxx
parentAdd a test case for importing merged cells from Excel 2003 XML file. (diff)
downloadcore-79afa1d9b3ac33b75512095c6383db7f47342f26.tar.gz
core-79afa1d9b3ac33b75512095c6383db7f47342f26.zip
ofz#6390 Leak
Change-Id: Icc2b90ac062da32c9da4cce67f15f6e55e005c2b Reviewed-on: https://gerrit.libreoffice.org/49842 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter/source/msfilter/msdffimp.cxx')
-rw-r--r--filter/source/msfilter/msdffimp.cxx2
1 files changed, 2 insertions, 0 deletions
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))