Skip to content

Commit

Permalink
Fix a weird memory leak, found by Pareon Verify
Browse files Browse the repository at this point in the history
  • Loading branch information
kaa-ching committed Aug 19, 2015
1 parent 4459262 commit e2aa296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/PolyObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void PolyObject::fillShapeList(void)
QStringList::iterator i = myPolygonList.begin();
while (i!=myPolygonList.end())
{
b2PolygonShape* myPolyShape = new b2PolygonShape();
b2PolygonShape* myPolyShape = new b2PolygonShape;
QStringList myCoordList = (*i).split("=",QString::SkipEmptyParts);
// if we find a shape with less than three vertexes, let's ignore it
Expand Down

0 comments on commit e2aa296

Please sign in to comment.