Resource leaks. Coverity scan.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-04-16 13:10:44 +03:00
parent c4d4f472ab
commit e1e4804503

View File

@ -302,6 +302,7 @@ void VToolUnionDetails::UpdatePoints(const quint32 &idDetail, VContainer *data,
data->UpdateGObject(idDetail+idCount, arc1); data->UpdateGObject(idDetail+idCount, arc1);
++idCount;// For child ++idCount;// For child
delete center;
} }
} }
break; break;
@ -330,6 +331,8 @@ void VToolUnionDetails::UpdatePoints(const quint32 &idDetail, VContainer *data,
data->UpdateGObject(idDetail+idCount, spl); data->UpdateGObject(idDetail+idCount, spl);
++idCount;// For child ++idCount;// For child
delete p1;
delete p4;
} }
} }
break; break;
@ -371,6 +374,8 @@ void VToolUnionDetails::UpdatePoints(const quint32 &idDetail, VContainer *data,
} }
path->append(VSplinePoint(*p4, splinePath->at(i).KAsm1(), spl.GetAngle2(), path->append(VSplinePoint(*p4, splinePath->at(i).KAsm1(), spl.GetAngle2(),
splinePath->at(i).KAsm2(), spl.GetAngle2()+180)); splinePath->at(i).KAsm2(), spl.GetAngle2()+180));
delete p1;
delete p4;
} }
++idCount;//For parent ++idCount;//For parent