diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-07-31 21:43:59 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-07-31 22:14:25 +0200 |
commit | 3d6521280929ecacc53b7c358d29d0b5d31b3462 (patch) | |
tree | 44bc202020f1df22042ad89e493bd63f3148b649 /include/formula | |
parent | WaE: 'aPageKind' may be used uninitialized in this function (diff) | |
download | core-3d6521280929ecacc53b7c358d29d0b5d31b3462.tar.gz core-3d6521280929ecacc53b7c358d29d0b5d31b3462.zip |
fix memory leak around function descriptions
Found by Lsan.
Change-Id: Ia443ed6eb2a20854998a615f3c2bd9fdac156a8c
Diffstat (limited to 'include/formula')
-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 a3570bb87071..579d36b3bc49 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 |