From ac862320f7d1874a1535b17a139ff28a54e3f82b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 16 Apr 2015 13:10:44 +0300 Subject: [PATCH] Resource leaks. Coverity scan. --HG-- branch : release --- src/app/tools/vtooluniondetails.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/tools/vtooluniondetails.cpp b/src/app/tools/vtooluniondetails.cpp index 1e8412f0b..6181e3fc3 100644 --- a/src/app/tools/vtooluniondetails.cpp +++ b/src/app/tools/vtooluniondetails.cpp @@ -302,6 +302,7 @@ void VToolUnionDetails::UpdatePoints(const quint32 &idDetail, VContainer *data, data->UpdateGObject(idDetail+idCount, arc1); ++idCount;// For child + delete center; } } break; @@ -330,6 +331,8 @@ void VToolUnionDetails::UpdatePoints(const quint32 &idDetail, VContainer *data, data->UpdateGObject(idDetail+idCount, spl); ++idCount;// For child + delete p1; + delete p4; } } break; @@ -371,6 +374,8 @@ void VToolUnionDetails::UpdatePoints(const quint32 &idDetail, VContainer *data, } path->append(VSplinePoint(*p4, splinePath->at(i).KAsm1(), spl.GetAngle2(), splinePath->at(i).KAsm2(), spl.GetAngle2()+180)); + delete p1; + delete p4; } ++idCount;//For parent