sc/source/ui/unoobj/scdetect.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 9b62bbc91e91b6b724dbf95c6977cc6cc049edb1
Author: Stephan Bergmann <sberg...@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: */
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to