diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-18 14:07:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-18 15:36:17 +0100 |
commit | fb10049037a0c5936d6aa78df0b53e77a45cdd6e (patch) | |
tree | b346cc88bc829fa0a781b5c41fe2b546db48cb4c /dbaccess | |
parent | 5ca2b2e344f8d3be947432069d92188f08e9f4ad (diff) |
coverity#706384 Uncaught exception
Change-Id: Ieadbc90be19ec14d78fdf352df7537c69c66616b
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/querycontainer.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/querycontainer.cxx b/dbaccess/source/core/api/querycontainer.cxx index a68d3c46a28b..59ad63ed2f6a 100644 --- a/dbaccess/source/core/api/querycontainer.cxx +++ b/dbaccess/source/core/api/querycontainer.cxx @@ -167,7 +167,13 @@ void SAL_CALL OQueryContainer::appendByDescriptor( const Reference< XPropertySet { notifyByName( aGuard, sNewObjectName, xNewObject, NULL, E_INSERTED, ApproveListeners ); } - catch( const Exception& ) + catch (const WrappedTargetException& e) + { + disposeComponent( xNewObject ); + disposeComponent( xCommandDefinitionPart ); + throw WrappedTargetRuntimeException(e.Message, e.Context, e.TargetException); + } + catch (const Exception&) { disposeComponent( xNewObject ); disposeComponent( xCommandDefinitionPart ); |