diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-05 10:40:40 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-05 14:57:59 +0000 |
commit | 47db04bfdeb642c09a30f0ee85de30255c2ea2b7 (patch) | |
tree | e19a1baf37a2958577e28da373065372f7a8db40 /sd/source | |
parent | 7ddfa141d3de8f2a431b5844254f23f7b7aeb1fa (diff) |
coverity#736461 Resource leak
Change-Id: I38351eecce12effb61d69439b67062b43344d541
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/unoidl/unosrch.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/unoidl/unosrch.cxx b/sd/source/ui/unoidl/unosrch.cxx index 148c78108a01..90d466a94a53 100644 --- a/sd/source/ui/unoidl/unosrch.cxx +++ b/sd/source/ui/unoidl/unosrch.cxx @@ -303,7 +303,8 @@ uno::Reference< ::com::sun::star::container::XIndexAccess > SAL_CALL SdUnoSearch if( nFound != nSequence ) aSeq.realloc( nFound ); - return (container::XIndexAccess*)new SdUnoFindAllAccess( aSeq ); + uno::Reference<css::container::XIndexAccess> xRet(new SdUnoFindAllAccess(aSeq)); + return xRet; } uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL SdUnoSearchReplaceShape::findFirst( const ::com::sun::star::uno::Reference< ::com::sun::star::util::XSearchDescriptor >& xDesc ) |