<div dir="ltr"><span style="font-size:10px">> Where did that happen?</span><br style="font-size:10px"><div><span style="font-size:10px"><br></span></div><div><span style="font-size:10px">I added a comment some days ago to a bug report -> </span><font size="1"><a href="https://bugs.kde.org/show_bug.cgi?id=337648#c5">https://bugs.kde.org/show_bug.cgi?id=337648#c5</a> .</font></div><div><font size="1">Together with other things leaked, there was the rootLayer of the image.</font></div><div><font size="1"><br></font></div><div><span style="font-size:10px">> What I think would be a good thing to do is this: either for a single</span><br style="font-size:10px"><span style="font-size:10px">> instance of a shared pointer (like the image's root layer) or for a single</span><br style="font-size:10px"><span style="font-size:10px">> type of shared pointer, create a proposal with a patch to improve that</span><br style="font-size:10px"><span style="font-size:10px">> single issue. Then we can check what happens and see how to fix the rest</span><br style="font-size:10px"><span style="font-size:10px">> of Krita.</span><font size="1"><br></font></div><div><span style="font-size:10px"><br></span></div><div><span style="font-size:10px">Yes i agree, forgot to say that i wasn't proposing to change everything now (because that's obviously insane), but that they should be used less from "now" on and that the parts that contains them should be slowly fixed/cleaned, as you proposed. </span></div></div>