Diffusion Krita 7735a5651a45

Fix memory leaks in KisMergeLabeledLayersCommand

Authored by tymond on May 1 2020, 7:29 PM.

Description

Fix memory leaks in KisMergeLabeledLayersCommand

Before this commit, KisMergeLabeledLayersCommand would keep the image
and paint device for as long as it is kept in the undo stack.
It's not needed, because the undo uses different ways to determine how
to undo and redo the selection.
After this commit at the end of the merge the command will clear its
shared pointer, which will in turn ensure that those objects will be
removed when nothing else will be using them.

Details

Committed
tymondMay 1 2020, 10:57 PM
Parents
R37:332b50ccc79e: Port Contiguous Selection Tool to strokes
Branches
Unknown
Tags
Unknown