From 37183595bb3b4d58682f90fd9f6713bedcb852a2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 6 Jun 2014 16:49:17 +0200 Subject: Fix memory leaks, by refcounting LwpObject Change-Id: I1539597cd5bcabcbf0295d1acc320c503ad53604 --- lotuswordpro/source/filter/lwpvpointer.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lotuswordpro/source/filter/lwpvpointer.hxx') diff --git a/lotuswordpro/source/filter/lwpvpointer.hxx b/lotuswordpro/source/filter/lwpvpointer.hxx index dd25e0d28d65..c9bc1f58ce06 100644 --- a/lotuswordpro/source/filter/lwpvpointer.hxx +++ b/lotuswordpro/source/filter/lwpvpointer.hxx @@ -72,13 +72,14 @@ class LwpVersionedPointer : public LwpObject { public: LwpVersionedPointer(LwpObjectHeader& objHdr, LwpSvStream* pStrm); - virtual ~LwpVersionedPointer(){} void Read() SAL_OVERRIDE; void RegisterStyle() SAL_OVERRIDE; void Parse(IXFStream* pOutputStream) SAL_OVERRIDE; LwpObjectID* GetPointer(){return &m_PointerID;} protected: LwpObjectID m_PointerID; +private: + virtual ~LwpVersionedPointer(){} }; #endif -- cgit