diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-01-07 12:36:08 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-01-07 12:36:08 +0100 |
commit | 5ea6f6d400e59e037032fb3091c3f6880b562ce9 (patch) | |
tree | fa7bccaebf53899c069e7b0896841b25e1d3af40 /sd/source/ui/unoidl | |
parent | 1e1ba8611fb134fb693354daae8931e93e46124c (diff) |
UNO objects must be allocated on the heap
This was a regression introduced with 5ea7e74c29f7279b6c31d38185ace576f68f4fb2
"fix some memory leaks in sd."
Change-Id: Ibcb2527b396886a5a904d8843c8560765ed859f5
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r-- | sd/source/ui/unoidl/sddetect.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/unoidl/sddetect.cxx b/sd/source/ui/unoidl/sddetect.cxx index 8a8bb9431776..eff86c53db2a 100644 --- a/sd/source/ui/unoidl/sddetect.cxx +++ b/sd/source/ui/unoidl/sddetect.cxx @@ -515,7 +515,8 @@ rtl::OUString SdFilterDetect::impl_getStaticImplementationName() /* Helper for registry */ UNOREFERENCE< UNOXINTERFACE > SAL_CALL SdFilterDetect::impl_createInstance( const UNOREFERENCE< UNOXMULTISERVICEFACTORY >& xServiceManager ) throw( UNOEXCEPTION ) { - return UNOREFERENCE< UNOXINTERFACE >( SdFilterDetect( xServiceManager ) ); + return static_cast< cppu::OWeakObject * >( + new SdFilterDetect( xServiceManager ) ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |