diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2017-01-26 23:38:12 -0500 |
---|---|---|
committer | Kohei Yoshida <libreoffice@kohei.us> | 2017-01-27 20:43:51 +0000 |
commit | f2f6d11e35cdd09291e730429d6c876532f34328 (patch) | |
tree | 480cc554dd81146a7e3e5be816ffa914bda11b72 | |
parent | ee7e34696e3981c65dd5a13688976aead450a709 (diff) |
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@libreoffice.org>
Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 5bbb325cc854..7c6e51cd0109 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 ); |