summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-07-31 21:43:59 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-08-11 10:33:44 +0000
commit9f149784501b6c867f6136d94d438ad926964efd (patch)
treed9adedddd941119f7ead0c1e4f8e84658c9fc6ad /include
parent4c9f600eb3ab76f2f4f4fde0cdc3bc91862d029b (diff)
fix memory leak around function descriptions
Found by Lsan. Change-Id: Ia443ed6eb2a20854998a615f3c2bd9fdac156a8c (cherry picked from commit 3d6521280929ecacc53b7c358d29d0b5d31b3462) Reviewed-on: https://gerrit.libreoffice.org/10740 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/formula/IFunctionDescription.hxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/formula/IFunctionDescription.hxx b/include/formula/IFunctionDescription.hxx
index 7f75d644cd30..aceac35fe85c 100644
--- a/include/formula/IFunctionDescription.hxx
+++ b/include/formula/IFunctionDescription.hxx
@@ -60,7 +60,7 @@ namespace formula
~IFunctionManager() {}
};
- class SAL_NO_VTABLE IFunctionCategory
+ class IFunctionCategory
{
public:
IFunctionCategory(){}
@@ -70,8 +70,7 @@ namespace formula
virtual sal_uInt32 getNumber() const = 0;
virtual OUString getName() const = 0;
- protected:
- ~IFunctionCategory() {}
+ virtual ~IFunctionCategory() {}
};
class SAL_NO_VTABLE IFunctionDescription