Skip to content
Commit 3172f1da authored by Halla Rempt's avatar Halla Rempt Committed by Dmitry Kazakov
Browse files

Fix resource leak

This is why I do not want auto to be used in Krita's code:

auto bla = createSomething();

doesn't warn that you need to delete bla as much as

Bla *bla = createSomething();

because it's invisible that bla is a pointer.

The alternative is that we use smart pointers _everywhere_, which
isn't feasible...

CCMAIL:kimageshop@kde.org
CID:305464
(cherry picked from commit befdf9b4)
parent 52eb8931
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment