From 36c11cb71c6ec107cc08b16109e468765abc9867 Mon Sep 17 00:00:00 2001 From: Dennis Francis Date: Fri, 18 Sep 2015 07:33:27 +0530 Subject: fixes memleak : clear self referring VclPtr in MetricBox MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clears self referring VclPtr called mpField in MetricBox (inherited from FormatterBase class) via dispose() method of MetricBox. Change-Id: I375e03e814de3c6e47c36b1fc6f625b04521a5e2 Reviewed-on: https://gerrit.libreoffice.org/18674 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/vcl/field.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/vcl') diff --git a/include/vcl/field.hxx b/include/vcl/field.hxx index 8ed681bac67b..03be56c28eb3 100644 --- a/include/vcl/field.hxx +++ b/include/vcl/field.hxx @@ -739,6 +739,8 @@ public: // Needed, because GetValue() with nPos hide these functions virtual sal_Int64 GetValue( FieldUnit eOutUnit ) const SAL_OVERRIDE; virtual sal_Int64 GetValue() const SAL_OVERRIDE; + + virtual void dispose() SAL_OVERRIDE; }; -- cgit v1.2.3