summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-17 21:18:17 +0000
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-18 11:23:24 +0100
commit2980e65d9728cfee73c1c49d64e19af50f756521 (patch)
tree81917ed38620a7f99dfec72fcf7cc5c8d1eb2d9f /sdext
parent3eb9a61a010c8569708d47a8f7432b5bd19d931b (diff)
fix crash on pdf import of fdo30892-1
after commit a9ef943769b06e6bdffe7326f288b27e08a95698 Date: Wed Feb 28 11:09:43 2018 +0200 loplugin:useuniqueptr in sdext Change-Id: I964e2319d583455c2c698f895e0b675d69256e38 Reviewed-on: https://gerrit.libreoffice.org/51475 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/tree/drawtreevisiting.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
index d1cbab6fb215..aba49aa0ee0d 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
@@ -736,7 +736,6 @@ void DrawXmlOptimizer::optimizeTextElements(Element& rParent)
pCur->Children.splice( pCur->Children.end(), pNext->Children );
// get rid of the now useless element
rParent.Children.erase( next );
- delete pNext;
bConcat = true;
}
}