[Libreoffice-commits] core.git: editeng/source

Kohei Yoshida kohei.yoshida at collabora.com
Fri Jan 27 20:44:23 UTC 2017


 editeng/source/editeng/impedit2.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit f2f6d11e35cdd09291e730429d6c876532f34328
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Thu Jan 26 23:38:12 2017 -0500

    tdf#102688: let's purge it here just in case...
    
    In theory it would still leak without this if the map mode is set
    multiple times.
    
    Change-Id: Ie862f4d59e45b92ff75dffb787ef256337f47f84
    Reviewed-on: https://gerrit.libreoffice.org/33602
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Kohei Yoshida <libreoffice at kohei.us>

diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index 5bbb325..7c6e51c 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -208,6 +208,7 @@ void ImpEditEngine::SetRefMapMode( const MapMode& rMapMode )
     if ( GetRefDevice()->GetMapMode() == rMapMode )
         return;
 
+    mpOwnDev.disposeAndClear();
     mpOwnDev = VclPtr<VirtualDevice>::Create();
     pRefDev = mpOwnDev;
     pRefDev->SetMapMode( MapUnit::MapTwip );


More information about the Libreoffice-commits mailing list