diff options
| author | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-09-30 01:52:07 +0000 |
|---|---|---|
| committer | Nathan Lee <2431820-nathanal@users.noreply.gitlab.com> | 2019-09-30 22:58:30 +0000 |
| commit | 3caf089a6e6020575c70567bc2d644cf1f7a4d56 (patch) | |
| tree | 4b9b25df1d0c2b1efd3acf2fa0288cfcbd0cd630 /src/display/drawing-item.cpp | |
| parent | Reduce memory leaks when dragging shapes (diff) | |
| download | inkscape-3caf089a6e6020575c70567bc2d644cf1f7a4d56.tar.gz inkscape-3caf089a6e6020575c70567bc2d644cf1f7a4d56.zip | |
Reduce memory leak when dragging selection
Diffstat (limited to 'src/display/drawing-item.cpp')
| -rw-r--r-- | src/display/drawing-item.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display/drawing-item.cpp b/src/display/drawing-item.cpp index 6777be5cc..757a973fe 100644 --- a/src/display/drawing-item.cpp +++ b/src/display/drawing-item.cpp @@ -274,8 +274,8 @@ DrawingItem::setTransform(Geom::Affine const &new_trans) if (!Geom::are_near(current, new_trans, 1e-18)) { // mark the area where the object was for redraw. _markForRendering(); + delete _transform; if (new_trans.isIdentity()) { - delete _transform; // delete NULL; is safe _transform = nullptr; } else { _transform = new Geom::Affine(new_trans); |
