summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-01-07 12:40:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-01-07 12:40:15 +0100
commit9b62bbc91e91b6b724dbf95c6977cc6cc049edb1 (patch)
treed83e07aa69ffae30d99b16e45b7f09ac27519eb0 /sc
parent5ea6f6d400e59e037032fb3091c3f6880b562ce9 (diff)
UNO objects must be allocated on the heap
This was a regression introduced with e48d47469508dee55ae6abcb3988222b5612e1e9 "fix some memory leaks in sc." Change-Id: I482516d31b857801c321ed252d19f06b4b11542e
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/unoobj/scdetect.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index 9ef418e162ad..53c69f83a20c 100644
--- a/sc/source/ui/unoobj/scdetect.cxx
+++ b/sc/source/ui/unoobj/scdetect.cxx
@@ -930,7 +930,8 @@ OUString ScFilterDetect::impl_getStaticImplementationName()
/* Helper for registry */
UNOREFERENCE< UNOXINTERFACE > SAL_CALL ScFilterDetect::impl_createInstance( const UNOREFERENCE< UNOXMULTISERVICEFACTORY >& xServiceManager ) throw( UNOEXCEPTION )
{
- return UNOREFERENCE< UNOXINTERFACE >( ScFilterDetect( xServiceManager ) );
+ return static_cast< cppu::OWeakObject * >(
+ new ScFilterDetect( xServiceManager ) );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */