From 02902e9c0ff7294421e0e87b9cacc9e4e779217f Mon Sep 17 00:00:00 2001 From: Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> Date: Sun, 29 Sep 2019 20:41:28 +1000 Subject: Reduce memory leaks when dragging shapes Remove unnecessary copy per Thomas' suggestion --- src/object/sp-shape.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/object/sp-shape.cpp') 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); } } -- cgit v1.2.3