summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit/pdfexport
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-11 11:09:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-11 13:35:07 +0200
commit687f46059cc9238d74e0687fbd9422dfdb109e1e (patch)
tree000f85ff07d3123746cdb0304e1818e4d8bbf9a6 /vcl/qa/cppunit/pdfexport
parente84d6f512fceb8b354b2d111193a9fd7d834acc5 (diff)
fix some leaks in vcl
Change-Id: I9588841de6f751ad767f695dec51f660b2990b49 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93954 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qa/cppunit/pdfexport')
-rw-r--r--vcl/qa/cppunit/pdfexport/pdfexport.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
index a57add56a292..a171a6791292 100644
--- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx
+++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
@@ -1180,6 +1180,8 @@ void PdfExportTest::testTdf115117_1a()
aChars[i] = FPDFText_GetUnicode(pPdfTextPage, i);
OUString aActualText(aChars.data(), aChars.size());
CPPUNIT_ASSERT_EQUAL(aExpectedText, aActualText);
+
+ FPDFText_ClosePage(pPdfTextPage);
#endif
}
@@ -1222,6 +1224,8 @@ void PdfExportTest::testTdf115117_2a()
aChars[i] = FPDFText_GetUnicode(pPdfTextPage, i);
OUString aActualText(aChars.data(), aChars.size());
CPPUNIT_ASSERT_EQUAL(aExpectedText, aActualText);
+
+ FPDFText_ClosePage(pPdfTextPage);
#endif
}
@@ -1759,6 +1763,7 @@ void PdfExportTest::testTdf121962()
CPPUNIT_ASSERT(sText != "** Expression is faulty **");
}
+ FPDFText_ClosePage(pTextPage);
}
void PdfExportTest::testTdf115967()
@@ -1790,6 +1795,8 @@ void PdfExportTest::testTdf115967()
sText += sChar.trim();
}
CPPUNIT_ASSERT_EQUAL(OUString("m=750abc"), sText);
+
+ FPDFText_ClosePage(pTextPage);
}
void PdfExportTest::testTdf121615()