[PATCH] coverity#440777: Resource leak in object

Julien Nabet (via Code Review) gerrit at gerrit.libreoffice.org
Mon Mar 4 13:07:49 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2551

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/51/2551/1

coverity#440777: Resource leak in object

Change-Id: Ib183032f305b11c759e02e122487e0ac989690fd
---
M tools/source/generic/poly.cxx
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index dfa931a..5e8bfd0 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -1115,7 +1115,7 @@
                         mpPoly = new ImplPolygon( nDestSize );
                     }
 
-    virtual         ~ImplPolygonPointFilter() {}
+    virtual         ~ImplPolygonPointFilter() { delete mpPoly; }
 
     virtual void    LastPoint();
     virtual void    Input( const Point& rPoint );

-- 
To view, visit https://gerrit.libreoffice.org/2551
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib183032f305b11c759e02e122487e0ac989690fd
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Julien Nabet <serval2412 at yahoo.fr>



More information about the LibreOffice mailing list