diff options
| author | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-09-29 10:41:28 +0000 |
|---|---|---|
| committer | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-09-30 22:58:30 +0000 |
| commit | 02902e9c0ff7294421e0e87b9cacc9e4e779217f (patch) | |
| tree | c61786bbea82a20fcb0c19f92b2253488f8b54f6 /src/object/sp-shape.cpp | |
| parent | Don't create empty text node when reading in "textPath". (diff) | |
| download | inkscape-02902e9c0ff7294421e0e87b9cacc9e4e779217f.tar.gz inkscape-02902e9c0ff7294421e0e87b9cacc9e4e779217f.zip | |
Reduce memory leaks when dragging shapes
Remove unnecessary copy per Thomas' suggestion
Diffstat (limited to 'src/object/sp-shape.cpp')
| -rw-r--r-- | src/object/sp-shape.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object/sp-shape.cpp b/src/object/sp-shape.cpp index 011dc9edc..2070bf4a1 100644 --- a/src/object/sp-shape.cpp +++ b/src/object/sp-shape.cpp @@ -454,7 +454,8 @@ void SPShape::modified(unsigned int flags) { } } } - if (!this->getCurve()) { + + if (!this->getCurve(TRUE)) { // avoid copy sp_lpe_item_update_patheffect(this, true, false); } } |
