[Libreoffice-commits] .: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Jan 7 03:41:16 PST 2013
sc/source/ui/unoobj/scdetect.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 9b62bbc91e91b6b724dbf95c6977cc6cc049edb1
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Jan 7 12:40:15 2013 +0100
UNO objects must be allocated on the heap
This was a regression introduced with e48d47469508dee55ae6abcb3988222b5612e1e9
"fix some memory leaks in sc."
Change-Id: I482516d31b857801c321ed252d19f06b4b11542e
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx
index 9ef418e..53c69f8 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: */
More information about the Libreoffice-commits
mailing list