diff options
Diffstat (limited to 'cppcanvas/source/mtfrenderer/emfplus.cxx')
-rw-r--r-- | cppcanvas/source/mtfrenderer/emfplus.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index d3b58aa4b7ed..a8b08d2067e5 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -604,6 +604,18 @@ namespace cppcanvas public: EMFPPen () : EMFPBrush () { + dashPattern = NULL; + compoundArray = NULL; + customStartCap = NULL; + customEndCap = NULL; + } + + ~EMFPPen () + { + delete[] dashPattern; + delete[] compoundArray; + delete[] customStartCap; + delete[] customEndCap; } void SetStrokeAttributes (rendering::StrokeAttributes& rStrokeAttributes, ImplRenderer& rR, const OutDevState& rState) |