diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-21 15:54:02 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-21 21:18:50 +0200 |
commit | 1e918814aa4aa6d88c5426e9b28b1aea385d9a57 (patch) | |
tree | 3dae710578443438f179a6af0f5fecd4553d1aa9 | |
parent | 379bf687d1bbbcab5ee308089c1270dc95b2b410 (diff) |
Resolves: rhbz#115937 virtual device leak
windows runs out much sooner than the other platforms
Change-Id: I8ffbe32babf8854580150edfe741b03fd43e4326
Reviewed-on: https://gerrit.libreoffice.org/59408
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | emfio/source/reader/mtftools.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx index fa62c205524e..3b922636b550 100644 --- a/emfio/source/reader/mtftools.cxx +++ b/emfio/source/reader/mtftools.cxx @@ -1616,7 +1616,7 @@ namespace emfio BitmapEx aBmpEx( rBitmap ); if ( mbComplexClip ) { - VclPtrInstance< VirtualDevice > pVDev; + ScopedVclPtrInstance< VirtualDevice > pVDev; MapMode aMapMode( MapUnit::Map100thMM ); aMapMode.SetOrigin( Point( -rPos.X(), -rPos.Y() ) ); const Size aOutputSizePixel( pVDev->LogicToPixel( rSize, aMapMode ) ); |