From 2980e65d9728cfee73c1c49d64e19af50f756521 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sat, 17 Mar 2018 21:18:17 +0000 Subject: [PATCH] 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 Reviewed-by: Noel Grandin --- sdext/source/pdfimport/tree/drawtreevisiting.cxx | 1 - 1 file changed, 1 deletion(-) 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; } }