diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-02-19 15:26:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-02-19 21:46:05 +0100 |
commit | 3db5a4ca4f29b7f3bdba6bdf825d4606fd939a22 (patch) | |
tree | 44d623ef41a1fe1ff346bd217c6d4f480e087910 /sw | |
parent | 05c9cd9bcdc5edfbaf23d3ce31b9050ff2eef21f (diff) |
ofz#6459 leak
Change-Id: Ie5501d20176f13a50a6d57c13ce1053343924a91
Reviewed-on: https://gerrit.libreoffice.org/50003
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/ww8graf.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx index 3b3aea37ca15..f8258e10a001 100644 --- a/sw/source/filter/ww8/ww8graf.cxx +++ b/sw/source/filter/ww8/ww8graf.cxx @@ -2630,7 +2630,13 @@ SwFrameFormat* SwWW8ImplReader::Read_GrafLayer( long nGrafAnchorCp ) // #i21847# // Some shapes are set to *hidden*, don't import those ones. if (pRecord->bHidden) + { + // remove old object from the Z-Order list + m_xMSDffManager->RemoveFromShapeOrder(pObject); + // and delete the object + SdrObject::Free(pObject); return nullptr; + } sal_uInt16 nCount = pObject->GetUserDataCount(); if(nCount) |