diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-02-17 13:10:03 -0600 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-02-19 15:06:39 +0000 |
commit | bf46dfdb45b1d6cd99a5c729ee98df89db363225 (patch) | |
tree | a1ab3a040465f824bebb64bf620d4a93d67b2d17 /writerperfect | |
parent | 349e9248f801d23735478abafe5328f79dfe4378 (diff) |
coverity#983356 ressource leak
Change-Id: Idcc2d548363ddab04dd8acaa1dfb854a19ca47ef
Reviewed-on: https://gerrit.libreoffice.org/2200
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/filter/OdgGenerator.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx index 86611389acd5..ece259a9ff12 100644 --- a/writerperfect/source/filter/OdgGenerator.cxx +++ b/writerperfect/source/filter/OdgGenerator.cxx @@ -1325,7 +1325,13 @@ void OdgGeneratorPrivate::_writeGraphicsStyle() mGraphicsGradientStyles.push_back(new TagCloseElement("draw:opacity")); } } - + else + { + /* if mxGradient.count() == 1 for some reason we would leak + * pDrawGradientElement + */ + delete pDrawGradientElement; + } if(!bUseOpacityGradient) delete pDrawOpacityElement; } |