Kaydet (Commit) 7b627e46 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

coverity#704165: fix memory leak

Change-Id: Ia62ab987bc7f4f25e22385194ca2df8d6e74376f
üst 9c77890a
......@@ -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;
};
}
......
......@@ -65,7 +65,6 @@ UndoAnimation::UndoAnimation( SdDrawDocument* pDoc, SdPage* pThePage )
UndoAnimation::~UndoAnimation()
{
delete mpImpl;
}
void UndoAnimation::Undo()
......@@ -233,7 +232,6 @@ UndoTransition::UndoTransition( SdDrawDocument* _pDoc, SdPage* pThePage )
UndoTransition::~UndoTransition()
{
delete mpImpl;
}
void UndoTransition::Undo()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment