Commit 7689e3a0 authored by Pierre Ducroquet's avatar Pierre Ducroquet

Clean properly when removing a KoTextLayoutRootArea

Clean up various fields when calling releaseAllAfter,
and remove the rootArea from its associated shape
on delete.

BUG: 322429
parent f074ddf1
......@@ -49,6 +49,12 @@ KoTextLayoutRootArea::KoTextLayoutRootArea(KoTextDocumentLayout *documentLayout)
if (d->shape)
KoTextShapeData *data = qobject_cast<KoTextShapeData*>(d->shape->userData());
if (data)
delete d->nextStartOfArea;
delete d->textpage;
delete d;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment