From f32fe9f5012e3ee184e1a1fca6814bee9105d8fb Mon Sep 17 00:00:00 2001 From: Arnaud Versini Date: Sun, 11 Mar 2012 20:42:44 +0100 Subject: [PATCH] Add a virtual destrcutor to value to prevent memory leak in RTFValue --- writerfilter/inc/resourcemodel/WW8ResourceModel.hxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/writerfilter/inc/resourcemodel/WW8ResourceModel.hxx b/writerfilter/inc/resourcemodel/WW8ResourceModel.hxx index f452a83b5536..9504b6ffc4c5 100644 --- a/writerfilter/inc/resourcemodel/WW8ResourceModel.hxx +++ b/writerfilter/inc/resourcemodel/WW8ResourceModel.hxx @@ -295,6 +295,8 @@ public: typedef auto_ptr Pointer_t; SAL_WNODEPRECATED_DECLARATIONS_POP + virtual ~Value() {} + /** Returns integer representation of the value. */