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>
This commit is contained in:
Noel Grandin 2021-05-25 13:31:32 +02:00
parent 3ed71a09af
commit a2a98f6218
2 changed files with 19 additions and 0 deletions

View file

@ -38,6 +38,12 @@ $(eval $(call gb_CppunitTest_use_externals,desktop_lib, \
boost_headers \
cairo \
))
ifeq ($(TLS),NSS)
$(eval $(call gb_CppunitTest_use_externals,desktop_lib,\
plc4 \
nss3 \
))
endif
$(eval $(call gb_CppunitTest_set_include,desktop_lib,\
-I$(SRCDIR)/desktop/inc \

View file

@ -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();