diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-27 02:46:19 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-27 06:26:06 +0100 |
commit | 7b627e465ce018b3a27346c541d77667a5130628 (patch) | |
tree | 9c90254213f9e64d81e7d15f82ab0700525610d7 /sd/inc | |
parent | 9c77890a165a1a00441245fd6f8703d8911bc075 (diff) |
coverity#704165: fix memory leak
Change-Id: Ia62ab987bc7f4f25e22385194ca2df8d6e74376f
Diffstat (limited to 'sd/inc')
-rw-r--r-- | sd/inc/undoanim.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sd/inc/undoanim.hxx b/sd/inc/undoanim.hxx index 0fb1784b15d4..3fe7855b17e3 100644 --- a/sd/inc/undoanim.hxx +++ b/sd/inc/undoanim.hxx @@ -23,6 +23,7 @@ #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/animations/XAnimationNode.hpp> #include <svx/svdundo.hxx> +#include <boost/scoped_ptr.hpp> #include "sdundo.hxx" @@ -45,7 +46,7 @@ public: virtual rtl::OUString GetComment() const; private: - UndoAnimationImpl* mpImpl; + boost::scoped_ptr<UndoAnimationImpl> mpImpl; }; struct UndoAnimationPathImpl; @@ -61,7 +62,7 @@ public: virtual rtl::OUString GetComment() const; private: - UndoAnimationPathImpl* mpImpl; + boost::scoped_ptr<UndoAnimationPathImpl> mpImpl; }; struct UndoTransitionImpl; @@ -78,7 +79,7 @@ public: virtual rtl::OUString GetComment() const; private: - UndoTransitionImpl* mpImpl; + boost::scoped_ptr<UndoTransitionImpl> mpImpl; }; } |