sd/source/ui/view/drviews1.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit af9b1a8b2e7589d33168e5b252ee38d7c9821ab1
Author: Caolán McNamara <[email protected]>
Date:   Thu May 7 09:23:54 2015 +0100

    VclPtr: one ref too many
    
    Change-Id: I84cf33c8e68c41223aaa12208a2845675bbbfd5a

diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx
index b5674ce..9aa19da 100644
--- a/sd/source/ui/view/drviews1.cxx
+++ b/sd/source/ui/view/drviews1.cxx
@@ -494,8 +494,9 @@ SvxRuler* DrawViewShell::CreateHRuler (::sd::Window* pWin, 
bool bIsFirst)
     else
         aWBits = WB_HSCROLL | WB_3DLOOK | WB_BORDER;
 
-    pRuler = new Ruler (*this, GetParentWindow(), pWin, nFlags,
+    pRuler = VclPtr<Ruler>::Create(*this, GetParentWindow(), pWin, nFlags,
         GetViewFrame()->GetBindings(), aWBits);
+
     pRuler->SetSourceUnit(pWin->GetMapMode().GetMapUnit());
 
     // Metric ...
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to