diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-27 02:51:04 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-27 06:26:06 +0100 |
commit | c7631f94625debbe120f810b80b189301da83396 (patch) | |
tree | 1b69df2bf8af2d413f4045cfdb41dc3d5d07ef0d /sd | |
parent | 7b627e465ce018b3a27346c541d77667a5130628 (diff) |
coverity#705697: fix memory leak
Change-Id: I637d21b0f94ecb036ca4887bb2a36649f907d9e9
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/ppt/pptinanimations.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/filter/ppt/pptinanimations.cxx b/sd/source/filter/ppt/pptinanimations.cxx index c314e4fafda6..2ed65bf02be6 100644 --- a/sd/source/filter/ppt/pptinanimations.cxx +++ b/sd/source/filter/ppt/pptinanimations.cxx @@ -251,10 +251,10 @@ int AnimationImporter::import( const Reference< XDrawPage >& xPage, const DffRec { Reference< XAnimationNode > xParent; - const Atom* pAtom = Atom::import( rProgTagContentHd, mrStCtrl ); + boost::scoped_ptr<Atom> pAtom(Atom::import( rProgTagContentHd, mrStCtrl )); if( pAtom ) { - nNodes = importAnimationContainer( pAtom, xParent ); + nNodes = importAnimationContainer( pAtom.get(), xParent ); } processAfterEffectNodes(); |