summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit/GraphicTest.cxx
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/GraphicTest.cxx
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/GraphicTest.cxx')
-rw-r--r--vcl/qa/cppunit/GraphicTest.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/GraphicTest.cxx b/vcl/qa/cppunit/GraphicTest.cxx
index d040f8837cd0..f40b5c1b88e7 100644
--- a/vcl/qa/cppunit/GraphicTest.cxx
+++ b/vcl/qa/cppunit/GraphicTest.cxx
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include <sal/config.h>
+#include <config_oox.h>
#include <cppunit/TestAssert.h>
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
@@ -25,12 +27,20 @@
#include <impgraph.hxx>
+#if USE_TLS_NSS
+#include <nss.h>
+#endif
+
using namespace css;
namespace
{
class GraphicTest : public CppUnit::TestFixture
{
+public:
+ ~GraphicTest();
+
+private:
void testUnloadedGraphic();
void testUnloadedGraphicLoading();
void testUnloadedGraphicWmf();
@@ -50,6 +60,13 @@ class GraphicTest : public CppUnit::TestFixture
CPPUNIT_TEST_SUITE_END();
};
+GraphicTest::~GraphicTest()
+{
+#if USE_TLS_NSS
+ NSS_Shutdown();
+#endif
+}
+
BitmapEx createBitmap(bool alpha = false)
{
Bitmap aBitmap(Size(120, 100), 24);