filter/source/msfilter/msdffimp.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 9d450875c8a0bea2468f65c7a57b9ff77344b6c8
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Wed May 11 11:02:06 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed May 11 15:16:45 2022 +0200

    only instantiate SfxFilterMatcher when we need it
    
    Change-Id: Ibb6162ddc6bec73beef6fffc8cf53976dc82313a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134156
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/filter/source/msfilter/msdffimp.cxx 
b/filter/source/msfilter/msdffimp.cxx
index f7b8c0aea1e2..daf047007b49 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -7144,14 +7144,16 @@ css::uno::Reference < css::embed::XEmbeddedObject >  
SvxMSDffManager::CheckForCo
         }
         else
         {
-            SfxFilterMatcher aMatch( sStarName );
             tools::SvRef<SotStorage> xStorage = new SotStorage( false, 
aMemStream );
             rSrcStg.CopyTo( xStorage.get() );
             xStorage->Commit();
             xStorage.clear();
             OUString aType = SfxFilter::GetTypeFromStorage( rSrcStg );
             if (aType.getLength() && !utl::ConfigManager::IsFuzzing())
+            {
+                SfxFilterMatcher aMatch( sStarName );
                 pFilter = aMatch.GetFilter4EA( aType );
+            }
         }
 
 #ifdef DEBUG_FILTER_MSFILTER

Reply via email to