summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorDennis Francis <dennisfrancis.in@gmail.com>2015-09-18 07:33:27 +0530
committerCaolán McNamara <caolanm@redhat.com>2015-09-18 08:00:38 +0000
commit36c11cb71c6ec107cc08b16109e468765abc9867 (patch)
tree6d141564239e81222e4e9a3697aef622e043ed4d /include/vcl
parent3a00aaef2a51d7a1a87475a316dc9ae232fac60c (diff)
fixes memleak : clear self referring VclPtr in MetricBox
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 <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/field.hxx2
1 files changed, 2 insertions, 0 deletions
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;
};