diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-25 13:31:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-25 19:56:32 +0200 |
commit | a2a98f62182561444d7841f0908d7423ab595675 (patch) | |
tree | cea5095eb6c2e3c76c3fd4a731ea49e90bfded58 /desktop/qa | |
parent | 3ed71a09af4de19ac00b3b944b8db667e6613c92 (diff) |
fix some crypto leaks
Change-Id: I8f0eddd5ec82200dca374c2191ed5ac28c66089a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116100
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop/qa')
-rw-r--r-- | desktop/qa/desktop_lib/test_desktop_lib.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx index 13370261a0fc..2a26b04dcfa0 100644 --- a/desktop/qa/desktop_lib/test_desktop_lib.cxx +++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx @@ -7,6 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <config_oox.h> #include <memory> #include <string_view> @@ -59,6 +60,10 @@ #include <cppunit/TestAssert.h> +#if USE_TLS_NSS +#include <nss.h> +#endif + using namespace com::sun::star; using namespace desktop; @@ -95,6 +100,7 @@ public: m_nTrackChanges(0) { } + ~DesktopLOKTest(); void readFileIntoByteVector( std::u16string_view sFilename, std::vector<sal_uInt8> & rByteVector); @@ -290,6 +296,13 @@ public: std::unique_ptr<LibLODocument_Impl> m_pDocument; }; +DesktopLOKTest::~DesktopLOKTest() +{ +#if USE_TLS_NSS + NSS_Shutdown(); +#endif +} + static Control* GetFocusControl(vcl::Window const * pParent) { sal_uInt16 nChildren = pParent->GetChildCount(); |