[PATCH] coverity#704145 Resource leak in object
Julien Nabet (via Code Review)
gerrit at gerrit.libreoffice.org
Tue Mar 26 15:41:44 PDT 2013
Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/3071
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/71/3071/1
coverity#704145 Resource leak in object
Change-Id: Ia676d215cf8ef4830e31a1caf4153e33af84c200
---
M forms/source/richtext/rtattributes.hxx
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/forms/source/richtext/rtattributes.hxx b/forms/source/richtext/rtattributes.hxx
index 3f19c98..4517cef 100644
--- a/forms/source/richtext/rtattributes.hxx
+++ b/forms/source/richtext/rtattributes.hxx
@@ -64,6 +64,7 @@
//................................................................
inline AttributeState( );
+ inline ~AttributeState( );
inline explicit AttributeState( AttributeCheckState _eCheckState );
inline AttributeState( const AttributeState& _rSource );
@@ -99,6 +100,10 @@
{
operator=( _rSource );
}
+ inline AttributeState::~AttributeState( )
+ {
+ delete(pItemHandle);
+ }
//................................................................
inline AttributeState& AttributeState::operator=( const AttributeState& _rSource )
--
To view, visit https://gerrit.libreoffice.org/3071
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia676d215cf8ef4830e31a1caf4153e33af84c200
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Julien Nabet <serval2412 at yahoo.fr>
More information about the LibreOffice
mailing list