Kaydet (Commit) f5d87c02 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Fridrich Štrba

coverity#1215317 Uncaught exception

Change-Id: Idada0fbd80f55f67bd62cb7d31dcc7457e4a18d5
üst 7a892c82
...@@ -596,7 +596,7 @@ bool Gallery::RemoveTheme( const OUString& rThemeName ) ...@@ -596,7 +596,7 @@ bool Gallery::RemoveTheme( const OUString& rThemeName )
return bRet; return bRet;
} }
GalleryTheme* Gallery::ImplGetCachedTheme( const GalleryThemeEntry* pThemeEntry ) GalleryTheme* Gallery::ImplGetCachedTheme(const GalleryThemeEntry* pThemeEntry)
{ {
GalleryTheme* pTheme = NULL; GalleryTheme* pTheme = NULL;
...@@ -623,12 +623,18 @@ GalleryTheme* Gallery::ImplGetCachedTheme( const GalleryThemeEntry* pThemeEntry ...@@ -623,12 +623,18 @@ GalleryTheme* Gallery::ImplGetCachedTheme( const GalleryThemeEntry* pThemeEntry
if( pIStm ) if( pIStm )
{ {
pTheme = new GalleryTheme( this, (GalleryThemeEntry*) pThemeEntry ); try
ReadGalleryTheme( *pIStm, *pTheme ); {
pTheme = new GalleryTheme( this, (GalleryThemeEntry*) pThemeEntry );
ReadGalleryTheme( *pIStm, *pTheme );
if( pIStm->GetError() ) if( pIStm->GetError() )
{
delete pTheme, pTheme = NULL;
}
}
catch (const css::ucb::ContentCreationException&)
{ {
delete pTheme, pTheme = NULL;
} }
delete pIStm; delete pIStm;
......
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