svx/source/tbxctrls/tbunosearchcontrollers.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 6da90944b5134d65bfbd7dcaf024956aa139efc1
Author: Markus Mohrhard <markus.mohrh...@googlemail.com>
Date:   Sun Jan 6 22:23:44 2013 +0100

    ugly memory leak
    
    Change-Id: I200713987eb1c19f7d795190e7acef02af569cc8

diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx 
b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
index c4bfc5c..91efdc3 100644
--- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx
+++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
@@ -767,25 +767,25 @@ void SAL_CALL FindbarDispatcher::removeStatusListener( 
const css::uno::Reference
 css::uno::Reference< css::uno::XInterface > SAL_CALL 
FindTextToolbarController_createInstance(
     const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr )
 {
-    return *new FindTextToolbarController( rSMgr );
+    return FindTextToolbarController( rSMgr );
 }
 
 css::uno::Reference< css::uno::XInterface > SAL_CALL 
DownSearchToolboxController_createInstance(
     const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr )
 {
-    return *new UpDownSearchToolboxController( rSMgr, 
UpDownSearchToolboxController::DOWN );
+    return UpDownSearchToolboxController( rSMgr, 
UpDownSearchToolboxController::DOWN );
 }
 
 css::uno::Reference< css::uno::XInterface > SAL_CALL 
UpSearchToolboxController_createInstance(
     const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr )
 {
-    return *new UpDownSearchToolboxController( rSMgr, 
UpDownSearchToolboxController::UP );
+    return UpDownSearchToolboxController( rSMgr, 
UpDownSearchToolboxController::UP );
 }
 
 css::uno::Reference< css::uno::XInterface > SAL_CALL 
FindbarDispatcher_createInstance(
     const css::uno::Reference< css::lang::XMultiServiceFactory >& rSMgr )
 {
-    return *new FindbarDispatcher( rSMgr );
+    return FindbarDispatcher( rSMgr );
 }
 
 
//-----------------------------------------------------------------------------------------------------------
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to