Add missing clear of children memory in outline node

This commit is contained in:
Marek Roszko
2022-09-25 08:47:28 -04:00
parent 7c44dbd9d6
commit 8f52821cd4
2 changed files with 15 additions and 6 deletions
+2 -2
View File
@@ -840,9 +840,9 @@ void PDF_PLOTTER::ClosePage()
VECTOR2I bottomLeft = iuToPdfUserSpace( box.GetPosition() );
VECTOR2I topRight = iuToPdfUserSpace( box.GetEnd() );
int curr_actionHandle = emitGoToAction( pageHandle, bottomLeft, topRight );
actionHandle = emitGoToAction( pageHandle, bottomLeft, topRight );
addOutlineNode( groupOutlineNode, curr_actionHandle, ref );
addOutlineNode( groupOutlineNode, actionHandle, ref );
}
std::sort( groupOutlineNode->children.begin(), groupOutlineNode->children.end(),