diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-08-25 13:00:41 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-08-25 13:06:02 +0200 |
commit | 6797610bcfc41d2af57db03c5d9b52cfc30d09ed (patch) | |
tree | 61204dca0b766544962961a104f8db9bb6559ace /oox/source/drawingml/effectproperties.hxx | |
parent | 0e061bd9a6d6c464bb63043d99257a36dc740496 (diff) |
use ptr_vector to prevent memory leak
Found by Lsan.
Change-Id: I727098ea3861bacf89209615e4b46e986a72c1ce
Diffstat (limited to 'oox/source/drawingml/effectproperties.hxx')
-rw-r--r-- | oox/source/drawingml/effectproperties.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/oox/source/drawingml/effectproperties.hxx b/oox/source/drawingml/effectproperties.hxx index dae858c82db4..4256b8d776d3 100644 --- a/oox/source/drawingml/effectproperties.hxx +++ b/oox/source/drawingml/effectproperties.hxx @@ -14,6 +14,8 @@ #include <oox/drawingml/color.hxx> #include <oox/helper/propertymap.hxx> +#include <boost/ptr_container/ptr_vector.hpp> + namespace oox { namespace drawingml { @@ -42,7 +44,7 @@ struct EffectProperties EffectShadowProperties maShadow; /** Stores all effect properties, including those not supported by core yet */ - std::vector< Effect* > maEffects; + boost::ptr_vector< Effect > maEffects; /** Overwrites all members that are explicitly set in rSourceProps. */ void assignUsed( const EffectProperties& rSourceProps ); |