ofz#45125 Indirect-leak

Change-Id: I208c0b6751eefbe6dddffa126fe3d89a3bd353af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131149
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2022-03-07 20:21:15 +00:00
parent ddf4e817d2
commit 873454c9f4

View File

@@ -385,7 +385,13 @@ error:
}
if (hdo->property.pPara)
{
hwpf.move_to_failed(std::unique_ptr<HWPPara>(hdo->property.pPara));
HWPPara* pPara = hdo->property.pPara;
while (pPara)
{
HWPPara* pNextPara = pPara->Next();
hwpf.move_to_failed(std::unique_ptr<HWPPara>(pPara));
pPara = pNextPara;
}
hdo->property.pPara = nullptr;
}
HWPDOFunc(hdo.get(), OBJFUNC_FREE, nullptr, 0);