Kaydet (Commit) f0ffbebd authored tarafından Jian Fang Zhang's avatar Jian Fang Zhang

#i120867#, in SfxLibraryContainer::storeLibraries_Impl(),need to free created…

#i120867#, in SfxLibraryContainer::storeLibraries_Impl(),need to free created pLibArray object before returning from branch code 

Found by: zhangjf 
Patch by: zhangjf
üst 5c413ad6
...@@ -1816,8 +1816,10 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto ...@@ -1816,8 +1816,10 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto
Any aLibAny = maNameContainer.getByName( aNames[0] ); Any aLibAny = maNameContainer.getByName( aNames[0] );
Reference< XNameAccess > xNameAccess; Reference< XNameAccess > xNameAccess;
aLibAny >>= xNameAccess; aLibAny >>= xNameAccess;
if ( !xNameAccess->hasElements() ) if ( !xNameAccess->hasElements() ){
delete pLibArray;
return; return;
}
} }
// create the empty target storage // create the empty target storage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment