diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-07-31 21:43:59 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-11 10:33:44 +0000 |
commit | 9f149784501b6c867f6136d94d438ad926964efd (patch) | |
tree | d9adedddd941119f7ead0c1e4f8e84658c9fc6ad /include | |
parent | 4c9f600eb3ab76f2f4f4fde0cdc3bc91862d029b (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.hxx | 5 |
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 |