diff options
| author | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-06-06 21:01:38 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-06-06 21:01:38 +0000 |
| commit | 1fd57a41383419cbeddbaef27e52d55c0d02400f (patch) | |
| tree | 72854a0d1dc09bec11e55b28c68ea22dcef5be1b /src/ui/tools/pencil-tool.cpp | |
| parent | Put lpe-envelope-perspective.cpp in CMakeLists.txt (diff) | |
| download | inkscape-1fd57a41383419cbeddbaef27e52d55c0d02400f.tar.gz inkscape-1fd57a41383419cbeddbaef27e52d55c0d02400f.zip | |
Clean up some unnecessary pointer usage in livarot
(bzr r13341.1.50)
Diffstat (limited to 'src/ui/tools/pencil-tool.cpp')
| -rw-r--r-- | src/ui/tools/pencil-tool.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/tools/pencil-tool.cpp b/src/ui/tools/pencil-tool.cpp index 0e8660248..48f8c3a28 100644 --- a/src/ui/tools/pencil-tool.cpp +++ b/src/ui/tools/pencil-tool.cpp @@ -760,9 +760,8 @@ void PencilTool::_sketchInterpolate() { path.LoadPathVector(Geom::path_from_piecewise(this->sketch_interpolation, 0.01)); path.Simplify(0.5); - Geom::PathVector *pathv = path.MakePathVector(); - this->sketch_interpolation = (*pathv)[0].toPwSb(); - delete pathv; + Geom::PathVector pathv = path.MakePathVector(); + this->sketch_interpolation = pathv[0].toPwSb(); } else { this->sketch_interpolation = fit_pwd2; } |
