diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-10-05 10:35:08 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-10-05 10:35:21 +0000 |
| commit | c0d2f40f095d3fd4776473eb04cc19a5615167bc (patch) | |
| tree | 0952399459ef3f7db163262f28e556e579113082 /src/ui/tool | |
| parent | Fix some memory leaks found by scan-build (diff) | |
| download | inkscape-c0d2f40f095d3fd4776473eb04cc19a5615167bc.tar.gz inkscape-c0d2f40f095d3fd4776473eb04cc19a5615167bc.zip | |
fix leak in _bsplineHandlePosition
Diffstat (limited to 'src/ui/tool')
| -rw-r--r-- | src/ui/tool/path-manipulator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index 9199ff4ed..82a8f5ecd 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -1284,7 +1284,7 @@ double PathManipulator::_bsplineHandlePosition(Handle *h, bool check_other) Node * next_node = nullptr; next_node = n->nodeToward(h); if(next_node){ - SPCurve *line_inside_nodes = new SPCurve(); + std::unique_ptr<SPCurve> line_inside_nodes(new SPCurve()); line_inside_nodes->moveto(n->position()); line_inside_nodes->lineto(next_node->position()); if(!are_near(h->position(), n->position())){ |
