[Libreoffice-commits] core.git: vcl/workben

Caolán McNamara caolanm at redhat.com
Tue Feb 7 20:43:59 UTC 2017


 vcl/workben/commonfuzzer.hxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 54380811ac6a42851b1da407dc43441d4033b0ce
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Feb 7 20:42:27 2017 +0000

    ofz: get the font info early inside leak disabled code
    
    cause we don't have a tear-down to release it
    
    Change-Id: I86a72288a1ed03bf5fc5b6a00d9067f3f1063580

diff --git a/vcl/workben/commonfuzzer.hxx b/vcl/workben/commonfuzzer.hxx
index 969d73b..bafaaee 100644
--- a/vcl/workben/commonfuzzer.hxx
+++ b/vcl/workben/commonfuzzer.hxx
@@ -22,6 +22,7 @@
 #include <vcl/wmf.hxx>
 #include <unistd.h>
 #include <stdlib.h>
+#include "unx/fontmanager.hxx"
 
 using namespace ::com::sun::star::uno;
 using namespace ::com::sun::star::lang;
@@ -86,6 +87,9 @@ extern "C" int LLVMFuzzerInitialize(int *argc, char ***argv)
     utl::ConfigManager::EnableAvoidConfig();
     InitVCL();
 
+    //we don't have a de-init, so get the font info here inside the leak disabled code
+    psp::PrintFontManager::get();
+
     if (__lsan_enable)
         __lsan_enable();
 


More information about the Libreoffice-commits mailing list