diff options
Diffstat (limited to 'filter/source/graphicfilter/idxf')
-rw-r--r-- | filter/source/graphicfilter/idxf/dxf2mtf.cxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/idxf/dxf2mtf.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/graphicfilter/idxf/dxf2mtf.cxx b/filter/source/graphicfilter/idxf/dxf2mtf.cxx index bacd08189425..ffca879871cb 100644 --- a/filter/source/graphicfilter/idxf/dxf2mtf.cxx +++ b/filter/source/graphicfilter/idxf/dxf2mtf.cxx @@ -885,7 +885,7 @@ bool DXF2GDIMetaFile::Convert(const DXFRepresentation & rDXF, GDIMetaFile & rMTF rMTF.SetPrefMapMode( MapMode( MAP_100TH_MM ) ); } - delete pVirDev; + pVirDev.disposeAndClear(); return bStatus; } diff --git a/filter/source/graphicfilter/idxf/dxf2mtf.hxx b/filter/source/graphicfilter/idxf/dxf2mtf.hxx index 3adc4eee9aff..e88fcc3c9f27 100644 --- a/filter/source/graphicfilter/idxf/dxf2mtf.hxx +++ b/filter/source/graphicfilter/idxf/dxf2mtf.hxx @@ -34,7 +34,7 @@ enum BrushStyle { BRUSH_NULL, BRUSH_SOLID, BRUSH_HORZ, BRUSH_VERT, class DXF2GDIMetaFile { private: - VirtualDevice * pVirDev; + VclPtr<VirtualDevice> pVirDev; const DXFRepresentation * pDXF; bool bStatus; |