Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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@yahoo.fr>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.